diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-08-12 20:59:37 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-08-12 21:00:29 +0200 |
commit | 8d6430a696b62fa1de5dcd92d00d80fb810d5f07 (patch) | |
tree | a8b06ab9d0302c3781bacf2a1c87eb6bba8b6b05 /src | |
parent | d19b35d668184fdac00a8ef56ff58c0748f22816 (diff) | |
download | vyos-1x-8d6430a696b62fa1de5dcd92d00d80fb810d5f07.tar.gz vyos-1x-8d6430a696b62fa1de5dcd92d00d80fb810d5f07.zip |
login: T3746: inform users about pending reboots
(cherry picked from commit 7e52a7079afb522d1456833023ad58fa8b05e880)
Diffstat (limited to 'src')
-rwxr-xr-x | src/etc/update-motd.d/99-reboot | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/etc/update-motd.d/99-reboot b/src/etc/update-motd.d/99-reboot new file mode 100755 index 000000000..718be1a7a --- /dev/null +++ b/src/etc/update-motd.d/99-reboot @@ -0,0 +1,7 @@ +#!/bin/vbash +source /opt/vyatta/etc/functions/script-template +if [ -f /run/systemd/shutdown/scheduled ]; then + echo + run show reboot +fi +exit |