From be6a1393fcaae0f04e1d99b8d56ddefc2088121e Mon Sep 17 00:00:00 2001 From: polyfloyd Date: Thu, 13 Oct 2016 00:38:38 +0200 Subject: [PATCH] Tweak sleeps --- bitlair_closed.d/20_ledboard_poweroff | 3 +-- bitlair_closed.d/20_music_poweroff | 7 +++---- bitlair_open.d/20_ledboard_poweron | 2 -- bitlair_open.d/20_music_poweron | 4 +--- bitlair_open.d/20_statsdisplay_poweron | 2 +- 5 files changed, 6 insertions(+), 12 deletions(-) diff --git a/bitlair_closed.d/20_ledboard_poweroff b/bitlair_closed.d/20_ledboard_poweroff index 308af0a..9ed549e 100755 --- a/bitlair_closed.d/20_ledboard_poweroff +++ b/bitlair_closed.d/20_ledboard_poweroff @@ -2,6 +2,5 @@ # Switches off the led-board. ssh root@bitpanel.bitlair.nl shutdown -h now -sleep 5 +sleep 10 apc-switch 23 off -sleep 1 diff --git a/bitlair_closed.d/20_music_poweroff b/bitlair_closed.d/20_music_poweroff index 5abb958..985a21b 100755 --- a/bitlair_closed.d/20_music_poweroff +++ b/bitlair_closed.d/20_music_poweroff @@ -1,11 +1,10 @@ #!/bin/bash ssh -o ConnectTimeout=1 root@music.bitlair.nl shutdown -h now -sleep 5 -apc-switch 13 2 +sleep 10 +apc-switch 13 off # Amplifier and KVM switch -apc-switch 20 2 -sleep 1 +apc-switch 20 off mqtt-simple -r -h mqtt.bitlair.nl -p 'bitlair/music/space/state' -m 'stopped' diff --git a/bitlair_open.d/20_ledboard_poweron b/bitlair_open.d/20_ledboard_poweron index 5b1f632..ff1a1a8 100755 --- a/bitlair_open.d/20_ledboard_poweron +++ b/bitlair_open.d/20_ledboard_poweron @@ -1,6 +1,4 @@ #!/bin/bash # Switches on the led-board. - apc-switch 23 on -sleep 1 diff --git a/bitlair_open.d/20_music_poweron b/bitlair_open.d/20_music_poweron index efdd8b5..7c718e3 100755 --- a/bitlair_open.d/20_music_poweron +++ b/bitlair_open.d/20_music_poweron @@ -2,10 +2,8 @@ # Switches on the music computer. apc-switch 13 off -sleep 5 +sleep 10 apc-switch 13 on -sleep 1 # Amplifier and KVM switch apc-switch 20 on -sleep 1 diff --git a/bitlair_open.d/20_statsdisplay_poweron b/bitlair_open.d/20_statsdisplay_poweron index 1469f76..a4c4975 100755 --- a/bitlair_open.d/20_statsdisplay_poweron +++ b/bitlair_open.d/20_statsdisplay_poweron @@ -3,6 +3,6 @@ # Starts the computer displaying pretty graphs. for i in {0..3}; do - wakeonlan '00:1e:c9:72:21:c4' + wakeonlan '00:1e:c9:72:21:c4' > /dev/null sleep 1 done