makefile and rc.local fix

This commit is contained in:
Scott 2020-02-28 16:06:46 +10:30
parent 0399051e0e
commit 8cbc7e700c
2 changed files with 16 additions and 0 deletions

View File

@ -4,6 +4,7 @@ PATH := /usr/local/go/bin:$(PATH)
.SILENT:copy_files .SILENT:copy_files
.SILENT:hard_copy_files .SILENT:hard_copy_files
.SILENT:build
.SILENT:clean .SILENT:clean
install: as_root copy_files build install: as_root copy_files build

View File

@ -0,0 +1,15 @@
#!/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
./looper &
exit 0