Commit changes from the last 4 years

This commit is contained in:
polyfloyd 2021-10-02 17:02:02 +02:00
parent ed042cbfce
commit bcd171723c
43 changed files with 74 additions and 37 deletions

View file

@ -0,0 +1,4 @@
#!/bin/bash
# Amplifier and KVM switch
apc-switch 22 off

View file

@ -3,9 +3,6 @@
ssh -o ConnectTimeout=1 root@music.bitlair.nl /opt/shutdown.sh
ssh -o ConnectTimeout=1 root@music.bitlair.nl shutdown -h now
sleep 10
apc-switch 18 off
# Amplifier and KVM switch
apc-switch 19 off
apc-switch 20 off
mqtt-simple -r -h mqtt.bitlair.nl -p 'bitlair/music/space/state' -m 'stopped'

View file

@ -3,7 +3,4 @@
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
apc-switch 18 off

View file

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

View file

@ -0,0 +1,3 @@
#!/bin/bash
apc-switch 17 off

View file

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

2
bitlair_closed.d/22_phone_off Executable file
View file

@ -0,0 +1,2 @@
#!/bin/bash
poe-switch 10 off

View file

@ -0,0 +1,4 @@
#!/bin/bash
# Turn off the port for the bank leds
powerbar-switch 3 off

4
bitlair_closed.d/23_beamer_off Executable file
View file

@ -0,0 +1,4 @@
#!/bin/bash
# Turn off the port for the Beamer
powerbar-switch 2 off

View file

@ -0,0 +1,5 @@
#!/bin/bash
ssh -o ConnectTimeout=1 root@ledbanner.bitlair.nl shutdown -h now
sleep 10
powerbar-switch 20 off

View file

@ -0,0 +1,6 @@
#!/bin/bash
ssh -o ConnectTimeout=1 root@statsbak.bitlair.nl shutdown -h now
sleep 20
powerbar-switch 19 off

View file

@ -1,3 +1,3 @@
#!/bin/bash
bitlair-tweet "We closed at $(date +%s)"
bitlair-state-tweet "No, we're closed. Closed at: $(date --rfc-3339=seconds)"