✨ Add reboot/unstuck script for wittgenstein
This commit is contained in:
parent
88f745d74e
commit
6c5260e5c1
2 changed files with 26 additions and 0 deletions
19
files/wittgenstein/reboot.sh
Executable file
19
files/wittgenstein/reboot.sh
Executable file
|
@ -0,0 +1,19 @@
|
||||||
|
#!/bin/sh
|
||||||
|
PATH='/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games'
|
||||||
|
|
||||||
|
echo 'start i2c-foo'
|
||||||
|
sudo modprobe i2c_dev
|
||||||
|
sudo modprobe i2c_bcm2708
|
||||||
|
|
||||||
|
# wait for network devices
|
||||||
|
sleep 30
|
||||||
|
|
||||||
|
cd /home/pi
|
||||||
|
echo 'start ampel controller'
|
||||||
|
tmux new-session -s ampel 'cd /home/pi/netz39_space_notification/raspberry/ledcontrol && ./ledcontrol'
|
||||||
|
|
||||||
|
echo 'start lever controller'
|
||||||
|
tmux new-window -t ampel:1 'cd /home/pi/netz39_space_notification/raspberry/statusswitch && ./statusswitch'
|
||||||
|
|
||||||
|
#echo 'start spaceapi controller'
|
||||||
|
#tmux new-window -t ampel:2 '/home/pi/netz39_space_notification/SpaceAPI && ./update-json.py --server=platon'
|
7
files/wittgenstein/unstuck.sh
Executable file
7
files/wittgenstein/unstuck.sh
Executable file
|
@ -0,0 +1,7 @@
|
||||||
|
#!/bin/bash
|
||||||
|
logger -t unstuck "unstuck $(date)"
|
||||||
|
|
||||||
|
killall tmux
|
||||||
|
|
||||||
|
sleep 1
|
||||||
|
/home/pi/reboot.sh
|
Loading…
Reference in a new issue