19 lines
544 B
Bash
Executable file
19 lines
544 B
Bash
Executable file
#!/bin/sh
|
|
PATH='/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games'
|
|
|
|
echo 'switch-on.sh'
|
|
/home/pi/switch-on.sh
|
|
|
|
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 -d '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'
|