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)"

View file

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

View file

@ -1,9 +1,4 @@
#!/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
# Turn on bitpanel
apc-switch 18 on

View file

@ -0,0 +1,4 @@
#!/bin/bash
# Turn on LEDs in the lounge
apc-switch 17 on

View file

@ -1,8 +1,5 @@
#!/bin/bash
apc-switch 18 off
apc-switch 20 off
# Switches on the music computer.
apc-switch 18 on
# Amplifier and KVM switch
apc-switch 19 on
apc-switch 20 on

View file

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

View file

@ -1,3 +1,4 @@
#!/bin/bash
# Turn on ledbanner
powerbar-switch 20 on

3
bitlair_open.d/22_phone_on Executable file
View file

@ -0,0 +1,3 @@
#!/bin/bash
poe-switch 10 on

4
bitlair_open.d/22_statsbak_on Executable file
View file

@ -0,0 +1,4 @@
#!/bin/bash
# Turn on statsbak
powerbar-switch 19 on

4
bitlair_open.d/23_beamer_on Executable file
View file

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

4
bitlair_open.d/24_bank_leds_on Executable file
View file

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

View file

@ -1,3 +1,3 @@
#!/bin/bash
bitlair-tweet "We OPENED at $(date +%s)"
bitlair-state-tweet "Yes, we're OPEN! Open since: $(date --rfc-3339=seconds)"

View file

@ -0,0 +1 @@
../bitlair_closed.d/20_amplifier_poweroff

View file

@ -1 +0,0 @@
../bitlair_closed.d/20_music_poweroff

View file

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

View file

@ -0,0 +1 @@
/opt/spacestate/bitlair_closed.d/21_lounge_leds_poweroff

View file

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

1
djo_closed.d/22_phone_off Symbolic link
View file

@ -0,0 +1 @@
/opt/spacestate/bitlair_closed.d/22_phone_off

View file

@ -0,0 +1 @@
../bitlair_closed.d/23_bank_leds_off

1
djo_closed.d/23_beamer_off Symbolic link
View file

@ -0,0 +1 @@
../bitlair_closed.d/23_beamer_off

View file

@ -0,0 +1 @@
/opt/spacestate/bitlair_closed.d/23_ledbanner_off

View file

@ -0,0 +1 @@
/opt/spacestate/bitlair_closed.d/24_statsbank_off

View file

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

View file

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

View file

@ -0,0 +1 @@
/opt/spacestate/bitlair_open.d/20_lounge_leds_poweron

View file

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

View file

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

1
djo_open.d/21_ledbanner_on Symbolic link
View file

@ -0,0 +1 @@
/opt/spacestate/bitlair_open.d/21_ledbanner_on

1
djo_open.d/22_phone_on Symbolic link
View file

@ -0,0 +1 @@
/opt/spacestate/bitlair_open.d/22_phone_on

1
djo_open.d/22_statsbak_on Symbolic link
View file

@ -0,0 +1 @@
/opt/spacestate/bitlair_open.d/22_statsbak_on

1
djo_open.d/23_beamer_on Symbolic link
View file

@ -0,0 +1 @@
../bitlair_open.d/23_beamer_on

1
djo_open.d/24_bank_leds_on Symbolic link
View file

@ -0,0 +1 @@
../bitlair_open.d/24_bank_leds_on