Last active
August 29, 2015 14:21
-
-
Save dwblair/953711269a00664bbdf0 to your computer and use it in GitHub Desktop.
With lots of help from Dogi -- temp1 pirateship phant test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# configure pirateship image | |
sudo pirateship rename temper | |
sudo pirateship adapter pirate.sh/ip "" none | |
sudo ifdown wlan0 | |
sudo ifup wlan0 | |
# install opk drivers | |
# NOTE: must manually copy phant 'keys_*.json' file to /boot directory | |
cd /root | |
git clone https://github.com/open-eio/opk-phant-json.git | |
git clone https://github.com/open-eio/opk-wrap.git | |
git clone https://github.com/openpipekit/opk-temper1-cli.git | |
opk-temper1-cli/install | |
# jack in the box | |
cd /boot | |
mv autorun.sh autoran.sh | |
touch autorun.sh | |
chmod 755 autorun.sh | |
# regular autorun.sh | |
echo '#!/bin/sh' > /boot/autorun.sh | |
echo '' >> /boot/autorun.sh | |
echo 'cd /boot' >> /boot/autorun.sh | |
# note: '-n10' on the next line refers to the number of seconds between commands. should be > 9 seconds for phant. | |
echo 'watch -n10 "/root/opk-temper1-cli/pull | /root/opk-wrap/wrap -s JSON -k temp | /root/opk-phant-json/push"' >> /boot/autorun.sh | |
reboot |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment