diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-08-12 20:59:37 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-08-12 20:59:37 +0200 |
commit | 7e52a7079afb522d1456833023ad58fa8b05e880 (patch) | |
tree | c5309dd413a2915af52c3668d3671471325098a9 | |
parent | d858bc06226c33e102fdf65e77bdb0362e40ef42 (diff) | |
download | vyos-1x-7e52a7079afb522d1456833023ad58fa8b05e880.tar.gz vyos-1x-7e52a7079afb522d1456833023ad58fa8b05e880.zip |
login: T3746: inform users about pending reboots
-rw-r--r-- | debian/vyos-1x.install | 1 | ||||
-rwxr-xr-x | src/etc/update-motd.d/99-reboot | 7 |
2 files changed, 8 insertions, 0 deletions
diff --git a/debian/vyos-1x.install b/debian/vyos-1x.install index 2ed25755f..7ca568eff 100644 --- a/debian/vyos-1x.install +++ b/debian/vyos-1x.install @@ -10,6 +10,7 @@ etc/sudoers.d etc/systemd etc/sysctl.d etc/udev +etc/update-motd.d etc/vyos lib/ opt/ 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 |