setup ssh splash screen using motd for debian bullseye
This commit is contained in:
5
ansible-5/roles/common/files/motd/reboot_required.sh
Normal file
5
ansible-5/roles/common/files/motd/reboot_required.sh
Normal file
@@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [ -x /usr/lib/update-notifier/update-motd-reboot-required ]; then
|
||||
exec /usr/lib/update-notifier/update-motd-reboot-required
|
||||
fi
|
||||
@@ -143,6 +143,7 @@ swap_usage=`free -m | awk '/Swap:/ { printf("%3.1f%%", $3/$2*100) }'`
|
||||
#getboardtemp
|
||||
|
||||
# DISPLAY
|
||||
echo
|
||||
echo "System information as of: $date"
|
||||
echo
|
||||
display "System load" "${load%% *}" "${critical_load}" "0" "" "${load#* }"
|
||||
|
||||
7
ansible-5/roles/common/files/motd/updates_available.sh
Normal file
7
ansible-5/roles/common/files/motd/updates_available.sh
Normal file
@@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
stamp="/var/lib/update-notifier/updates-available"
|
||||
|
||||
[ ! -r "$stamp" ] || cat "$stamp"
|
||||
|
||||
find $stamp -newermt 'now-7 days' 2> /dev/null | grep -q -m 1 '.' || /usr/share/update-notifier/notify-updates-outdated
|
||||
Reference in New Issue
Block a user