From 098a7d6efbf465ee8971a920cb373a8e41dc6f58 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Mon, 7 Sep 2015 01:35:01 +0200 Subject: modify rc.local on hb0|bpi0|profitbricks-build2 to run the system 400 days in the future (so far only manually deployed on bpi0) --- hosts/hb0-armhf-rb/etc/rc.local | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'hosts/hb0-armhf-rb') diff --git a/hosts/hb0-armhf-rb/etc/rc.local b/hosts/hb0-armhf-rb/etc/rc.local index 9493d09d..d98b2916 100755 --- a/hosts/hb0-armhf-rb/etc/rc.local +++ b/hosts/hb0-armhf-rb/etc/rc.local @@ -11,6 +11,13 @@ # # By default this script does nothing. +systemctl disable systemd-timesyncd +systemctl disable systemd-timedated +systemctl stop systemd-timesyncd +systemctl stop systemd-timedated +ntpdate -b us.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 exit 0 -- cgit v1.2.3-70-g09d2