Created
January 8, 2017 11:59
-
-
Save cachefiles/3f4689a34e06d98431a2c57c5549cf1b to your computer and use it in GitHub Desktop.
openwrt build script for dnsfix
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 | |
tmpdir=$(pwd)/$(mktemp -d build_openwrt_XXXX) | |
sdkurl=http://downloads.openwrt.org/latest/adm8668/generic/OpenWrt-SDK-15.05.1-adm8668_gcc-4.8-linaro_uClibc-0.9.33.2.Linux-x86_64.tar.bz2 | |
wget -O - $sdkurl | tar xjf - -C $tmpdir | |
sdkdir=$tmpdir/$(ls $tmpdir) | |
git clone --recursive https://github.com/cachefiles/dnsfix $sdkdir/package/dnsfix | |
(cd $sdkdir && make package/dnsfix/openwrt/compile) || exit | |
echo the new build package is $(find $sdkdir/bin -type f) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment