diff options
Diffstat (limited to 'hosts/bpi0-armhf-rb/etc')
-rwxr-xr-x | hosts/bpi0-armhf-rb/etc/rc.local | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/hosts/bpi0-armhf-rb/etc/rc.local b/hosts/bpi0-armhf-rb/etc/rc.local index 7940adf5..b069e6ba 100755 --- a/hosts/bpi0-armhf-rb/etc/rc.local +++ b/hosts/bpi0-armhf-rb/etc/rc.local @@ -11,12 +11,16 @@ # # By default this script does nothing. +echo "$(date) - system was rebooted" | mail -s "$(hostname -f) rebooted" root + +# disable running in the future for now +exit 0 + systemctl disable systemd-timesyncd systemctl disable systemd-timedated systemctl stop systemd-timesyncd systemctl stop systemd-timedated ntpdate -b de.pool.ntp.org -echo "$(date) - system was rebooted" | mail -s "$(hostname -f) rebooted" root date --set="+400 days" echo "$(date) - system is running in the future now" | mail -s "$(hostname -f) in the future" root |