From 6d0eb25d48064e23902cbb87f62a0703ba9f0e4b Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Fri, 28 Apr 2017 14:58:57 +0200 Subject: add debugging output and change system last Signed-off-by: Holger Levsen --- hosts/jenkins/etc/rc.local | 37 ++++++++++++++++++------------------- 1 file changed, 18 insertions(+), 19 deletions(-) (limited to 'hosts/jenkins') diff --git a/hosts/jenkins/etc/rc.local b/hosts/jenkins/etc/rc.local index 9248a7a7..8fed77ba 100755 --- a/hosts/jenkins/etc/rc.local +++ b/hosts/jenkins/etc/rc.local @@ -5,9 +5,8 @@ # This script is executed at the end of each multiuser runlevel. # Make sure that the script will "exit 0" on success or any other # value on error. -# -# In order to enable or disable this script just change the execution -# bits. + +set -x send_back_to_the_future() { # stop ntp @@ -67,22 +66,6 @@ if [ "$(hostname)" = "jenkins" ] ; then done fi -# -# run some hosts in the future -# -case $(hostname) in - codethink-sled9*) send_back_to_the_future ;; - codethink-sled11*) send_back_to_the_future ;; - codethink-sled13*) send_back_to_the_future ;; - codethink-sled15*) send_back_to_the_future ;; - profitbricks-build4*) send_back_to_the_future ;; - profitbricks-build5*) send_back_to_the_future ;; - profitbricks-build6*) send_back_to_the_future ;; - profitbricks-build15*) send_back_to_the_future ;; - profitbricks-build16*) send_back_to_the_future ;; - *) ;; -esac - # # fixup /(dev|run)/shm if needed # @@ -102,5 +85,21 @@ case $(hostname) in *) ;; esac +# +# run some hosts in the future +# +case $(hostname) in + codethink-sled9*) send_back_to_the_future ;; + codethink-sled11*) send_back_to_the_future ;; + codethink-sled13*) send_back_to_the_future ;; + codethink-sled15*) send_back_to_the_future ;; + profitbricks-build4*) send_back_to_the_future ;; + profitbricks-build5*) send_back_to_the_future ;; + profitbricks-build6*) send_back_to_the_future ;; + profitbricks-build15*) send_back_to_the_future ;; + profitbricks-build16*) send_back_to_the_future ;; + *) ;; +esac + echo "$(date -u) - system booted up." exit 0 -- cgit v1.2.3-70-g09d2