diff --git a/scripts/2startupScripts for Ubuntu b/scripts/2startupScripts for Ubuntu new file mode 100644 index 0000000..cbbd157 --- /dev/null +++ b/scripts/2startupScripts for Ubuntu @@ -0,0 +1,32 @@ +root/etc bbbstart script (chmod to executable) below: + +#!/bin/sh -x +cd /dev +mv i2c-2 i2c-1 +cd /sys/class/gpio +echo 49 > export +cd gpio49 +echo out > direction +echo 1 > value + +executable file rc.local: +root@ubuntubone2:/etc# cat rc.local + +#!/bin/sh -e +# +# rc.local +# +# This script is executed at the end of each multiuser runlevel. +# Make sure that the script will "exit 0" on success or any other +# value on error. +# +# In order to enable or disable this script just change the execution +# bits. +# +# By default this script does nothing. + +echo "" >> ~root/bbbstart.log +date >> ~root/bbbstart.log +/etc/bbbstart >> ~root/bbbstart.log 2>&1 + +exit 0