Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # Prepare build enviroment
- mkdir openwrt_build
- cd openwrt_build
- git clone --depth=1 git://git.openwrt.org/openwrt.git
- cd openwrt
- # Download and install package feeds
- ./scripts/feeds update -a
- ./scripts/feeds install -a
- # Download and apply patches in build directory
- wget -q http://paste.debian.net/downloadh/6b8d7dd6 -O ../add_74kc_optimizations.patch
- wget -q http://paste.debian.net/downloadh/60229a8d -O ../miniupnpd-1.8.20131216.patch
- for f in ../*.patch; do
- patch -p1 < $f;
- done
- # Download and update .config
- wget -q http://paste.debian.net/downloadh/4cba9b4a -O .config
- make defconfig
- # Make
- make -j 2
- # Create sha256sums
- cd bin/ar71xx
- sha256sum openwrt-ar71xx-generic-tl-wr841n-v8-squashfs-factory.bin openwrt-ar71xx-generic-tl-wr841n-v8-squashfs-sysupgrade.bin > sha256sum
- cd ../..
- # Create zip archive containing firmware images
- zip -9j ../openwrt-tl-wr841n-v8-squashfs-$(date +"%Y-%m-%d-%H-%M").zip bin/ar71xx/sha256sum bin/ar71xx/openwrt-ar71xx-generic-tl-wr841n-v8-squashfs-factory.bin bin/ar71xx/openwrt-ar71xx-generic-tl-wr841n-v8-squashfs-sysupgrade.bin
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement