Last active
November 1, 2016 10:49
-
-
Save MattAtkinson/3ee477c92ff10c3a246c3ab27d864b58 to your computer and use it in GitHub Desktop.
Automates setup of Workshop 1
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/bash | |
sudo apt-get install -y git libncurses5-dev libncursesw5-dev zlib1g-dev libssl-dev gawk subversion device-tree-compiler | |
wget https://downloads.creatordev.io/pistachio/marduk/OpenWrt-SDK-0.10.4-pistachio-marduk_gcc-5.3.0_musl-1.1.14.Linux-x86_64.tar.bz2 | |
mkdir openwrt-sdk && tar -xvf OpenWrt-SDK-0.10.4-pistachio-marduk_gcc-5.3.0_musl-1.1.14.Linux-x86_64.tar.bz2 -C openwrt-sdk/ --strip-components 1 | |
rm OpenWrt-SDK-0.10.4-pistachio-marduk_gcc-5.3.0_musl-1.1.14.Linux-x86_64.tar.bz2 | |
mkdir myworkspace && cd myworkspace | |
git clone https://github.com/CreatorDev/w1-switchcounter.git | |
workspacedir=$(readlink -f ./) | |
cd ../openwrt-sdk | |
echo src-link myworkspace $workspacedir >> feeds.conf.default | |
./scripts/feeds update -a && ./scripts/feeds install -a |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment