Add rc.local script to git

This commit is contained in:
Joshua Boniface 2017-03-31 05:32:56 +00:00
parent 0641491285
commit be3d0efa28
1 changed files with 17 additions and 0 deletions

17
rc.local Executable file
View File

@ -0,0 +1,17 @@
#!/bin/bash -e
#
# rc.local for RPiBMC
exec 1>>/var/log/rc.local.log
exec 2>>/var/log/rc.local.log
echo "#"
echo "# Boot at $(date) "
echo "#"
set -x
screen -dmS serialconsole /dev/ttyUSB0 115200
test -d /run/bmcd || mkdir /run/bmcd
/home/bmc/rpibmc/bmcd start
sleep 5
chgrp -R gpio /run/bmcd
chmod -R 770 /run/bmcd
set +x
exit 0