Skip to content

Instantly share code, notes, and snippets.

@cachefiles
Created January 8, 2017 11:59
Show Gist options
  • Save cachefiles/3f4689a34e06d98431a2c57c5549cf1b to your computer and use it in GitHub Desktop.
Save cachefiles/3f4689a34e06d98431a2c57c5549cf1b to your computer and use it in GitHub Desktop.
openwrt build script for dnsfix
#!/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