-
Notifications
You must be signed in to change notification settings - Fork 1
Enable the playback scripts
Copy the files to the desired location
cp mult_bus/src/bash_scripts/init_songs.sh /home/pi/Desktop/mult_bus/src/bash_scripts/
cp mult_bus/src/bash_scripts/play_songs.sh /home/pi/Desktop/mult_bus/src/bash_scripts/
cp mult_bus/src/bash_scripts/init_video.sh /home/pi/Desktop/mult_bus/src/bash_scripts/
cp mult_bus/src/bash_scripts/play_video.sh /home/pi/Desktop/mult_bus/src/bash_scripts/
cp mult_bus/src/bash_scripts/run_mult_bus.sh /home/pi/Desktop/mult_bus/src/bash_scripts/
In the file /home/pi/Desktop/mult_bus/src/bash_scripts/run_mult_bus.sh
edit the line BASE_DIR='/home/pi/Desktop/mult_bus/src/bash_scripts'
.
In order to start the playback, run the command:
bash /home/pi/Desktop/mult_bus/src/bash_scripts/run_mult_bus.sh
In order to enable the playback after reboot, open the crontab:
crontab -e
Put the following line:
@reboot /bin/bash /home/pi/Desktop/mult_bus/src/bash_scripts/run_mult_bus.sh >> /home/pi/run_mult_bus.log