mirror of https://bitbucket.org/ausocean/av.git
Merged in update-init-rclocal (pull request #388)
init: updated rc.local and Makefile to reflect change of revid-cli to rv Approved-by: Trek Hopton <trek.hopton@gmail.com>
This commit is contained in:
parent
19cbcfb08a
commit
fc3c89231d
|
@ -1,4 +1,4 @@
|
|||
# Install files and directories required by NetSender clients (such as gpio-netsender, revid-cli, etc.)
|
||||
# Install files and directories required by NetSender clients (such as gpio-netsender, rv, etc.)
|
||||
# and create a dhcpcd.enter-hook for setting the MAC address.
|
||||
# MA and DK can be optionally passed to Make, e.g, for a hard (first-time) installation:
|
||||
# sudo MA=mac DK=dk install_hard
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
#!/bin/sh -e
|
||||
# /etc/rc.local
|
||||
# This script launches revid-cli at boot time
|
||||
# This script launches rv at boot time
|
||||
|
||||
REVIDPATH=/home/pi/go/src/bitbucket.org/ausocean/av/cmd/revid-cli
|
||||
RVPATH=/home/pi/go/src/bitbucket.org/ausocean/av/cmd/rv
|
||||
|
||||
echo Set kernel parameters:
|
||||
# kernel settings to improve performance on Raspberry Pi
|
||||
|
@ -29,11 +29,11 @@ sudo ip addr show | grep inet
|
|||
exec 2> /var/log/netsender/stream.log
|
||||
exec 1>&2
|
||||
|
||||
# set env, working dir and run revid-cli as pi user
|
||||
# set env, working dir and run rv as pi user
|
||||
HOME=/home/pi
|
||||
GOPATH=$HOME/go
|
||||
REVIDPATH=$GOPATH/src/bitbucket.org/ausocean/av/cmd/revid-cli
|
||||
PATH=$PATH:/usr/local/go/bin:$REVIDPATH
|
||||
cd $REVIDPATH
|
||||
sudo -u pi HOME=$HOME GOPATH=$GOPATH PATH=$PATH ./revid-cli -NetSender &
|
||||
RVPATH=$GOPATH/src/bitbucket.org/ausocean/av/cmd/rv
|
||||
PATH=$PATH:/usr/local/go/bin:$RVPATH
|
||||
cd $RVPATH
|
||||
sudo -u pi HOME=$HOME GOPATH=$GOPATH PATH=$PATH ./rv &
|
||||
exit 0
|
||||
|
|
Loading…
Reference in New Issue