Browse Source

Add hostname and start example_basic on image boot

master
Krisjanis Rijnieks 7 years ago
parent
commit
f6285c8fb9
  1. 10
      scripts/ci/rpi/pisetup.sh

10
scripts/ci/rpi/pisetup.sh

@ -15,4 +15,14 @@ cd ..
cd ofxPiMapper/example_basic
make -j$(nproc)
echo "Setting hostname."
echo "opm" > /etc/hostname
cat /etc/hostname
echo "Setting up to run on boot."
crontab -l > mycron
echo "@reboot /home/pi/openFrameworks/addons/ofxPiMapper/example_basic/bin/example_basic" >> mycron
crontab mycron
rm mycron
echo "Done!"

Loading…
Cancel
Save