2020-02-28 08:36:46 +03:00
|
|
|
#!/bin/sh -e
|
|
|
|
# /etc/rc.local
|
|
|
|
# This script launches audio looper at boot time
|
|
|
|
|
|
|
|
exec 2> /tmp/rc.local.log # send stderr from rc.local to a log file
|
|
|
|
exec 1>&2 # send stdout to the same log file
|
|
|
|
printf "rc.local started" # show start of execution
|
|
|
|
set -x # tell sh to display commands before execution
|
|
|
|
|
|
|
|
PLAYERPATH=/home/pi/go/src/bitbucket.org/ausocean/av/cmd/audio-player/looper
|
|
|
|
cd $PLAYERPATH
|
|
|
|
|
2020-03-02 11:02:28 +03:00
|
|
|
sudo ./looper -path=/home/pi/example.mp3 &
|
2020-02-28 08:36:46 +03:00
|
|
|
|
2020-03-02 11:02:28 +03:00
|
|
|
exit 0
|