From f3923078af0c63aa5c297a58aca5b7943a0ddbc5 Mon Sep 17 00:00:00 2001 From: Michal Sojka Date: Fri, 5 Dec 2014 10:35:48 +0100 Subject: [PATCH] Poweroff the test box after the cron job finishes The box makes annoying high frequency noise :-( --- continuous/cron.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/continuous/cron.sh b/continuous/cron.sh index 97243b4..6b951aa 100755 --- a/continuous/cron.sh +++ b/continuous/cron.sh @@ -6,6 +6,11 @@ set -e cd $(dirname $0) +# Wakeup glab +sudo /usr/sbin/etherwake 00:0c:f1:77:ec:46 +while ! ssh sojka@glab true; do sleep 1; done +sleep 30 # Wait a bit to finish all boot jobs etc. + mkdir -p logs NOW=$(date +%F_%R:%S) @@ -19,3 +24,5 @@ fi make -C www --silent publish ( cd logs && git add $LOG && git commit --quiet -m 'Automatic commit' && git push --quiet ) + +ssh -f sojka@glab 'sudo /sbin/poweroff -- 2.39.2