setup ssh splash screen using motd for debian bullseye

This commit is contained in:
2022-08-21 10:34:04 -04:00
parent bcbca14816
commit 47dfd8aa22
5 changed files with 23 additions and 6 deletions

View 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

View File

@@ -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#* }"

View 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