Update scripts to space 2.0

This commit is contained in:
polyfloyd 2017-02-22 16:55:42 +01:00
parent 5131fed83c
commit ed042cbfce
21 changed files with 37 additions and 28 deletions

View file

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
ssh -o ConnectTimeout=1 root@music.bitlair.nl mpc pause ssh -o ConnectTimeout=1 root@music.bitlair.nl /opt/shutdown.sh
ssh -o ConnectTimeout=1 root@music.bitlair.nl shutdown -h now ssh -o ConnectTimeout=1 root@music.bitlair.nl shutdown -h now
sleep 10 sleep 10
apc-switch 18 off apc-switch 18 off

View file

@ -0,0 +1,9 @@
#!/bin/bash
ssh root@bitpanel.bitlair.nl shutdown -h now
sleep 10
# 1 = Board (upper half)
# 2 = Controller
# 3 = Board (lower half)
powerbar-switch 1-3 off

View file

@ -0,0 +1,3 @@
#!/bin/bash
powerbar-switch 20 off

View file

@ -1,6 +0,0 @@
#!/bin/bash
# Switches off the led-board.
ssh root@bitpanel.bitlair.nl shutdown -h now
sleep 10
apc-switch 23 off

View file

@ -0,0 +1,3 @@
#!/bin/bash
powerbar-switch 4 off

View file

@ -1,3 +0,0 @@
#!/bin/bash
ssh -o ConnectTimeout=1 root@statsbak.bitlair.nl shutdown -h now

View file

@ -0,0 +1,9 @@
#!/bin/bash
# Ensure the controller is power cycled.
powerbar-switch 2 off
# 1 = Board (upper half)
# 2 = Controller
# 3 = Board (lower half)
powerbar-switch 1-3 on

View file

@ -0,0 +1,3 @@
#!/bin/bash
powerbar-switch 20 on

View file

@ -1,6 +0,0 @@
#!/bin/bash
apc-switch 23 off
# Switches on the led-board.
apc-switch 23 on

View file

@ -0,0 +1,3 @@
#!/bin/bash
powerbar-switch 4 on

View file

@ -1,8 +0,0 @@
#!/bin/bash
# Starts the computer displaying pretty graphs.
for i in {0..3}; do
wakeonlan '00:1e:c9:72:21:c4' > /dev/null
sleep 1
done

View file

@ -0,0 +1 @@
../bitlair_closed.d/21_bitpanel_poweroff

View file

@ -0,0 +1 @@
../bitlair_closed.d/21_crossleds_poweroff

View file

@ -1 +0,0 @@
../bitlair_closed.d/21_ledboard_poweroff

View file

@ -0,0 +1 @@
../bitlair_closed.d/21_roofleds_poweroff

View file

@ -1 +0,0 @@
../bitlair_closed.d/22_statsdisplay_poweroff

View file

@ -0,0 +1 @@
../bitlair_open.d/20_bitpanel_poweron

View file

@ -0,0 +1 @@
../bitlair_open.d/20_crossleds_poweron

View file

@ -1 +0,0 @@
../bitlair_open.d/20_ledboard_poweron

View file

@ -0,0 +1 @@
../bitlair_open.d/20_roofleds_poweron

View file

@ -1 +0,0 @@
../bitlair_open.d/20_statsdisplay_poweron