Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions scripts/2startupScripts for Ubuntu
Original file line number Diff line number Diff line change
@@ -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