Last active
August 29, 2015 14:18
-
-
Save alberts-s/b9a461aa1ad4e08316d8 to your computer and use it in GitHub Desktop.
Softether VPN OpenWRT package builder
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 | |
PATH_MAIN=/vm/1/openwrt | |
CONFIGS=/vm/1/openwrt/openwrt_configs | |
PACKAGES=/vm/1/openwrt/packs | |
BUILDROOT=/vm/1/openwrt/barrier_breaker | |
cleaner (){ | |
rm -rf $BUILDROOT | |
} | |
construct_mips(){ | |
cd $PATH_MAIN | |
svn co svn://svn.openwrt.org/openwrt/branches/barrier_breaker | |
cd barrier_breaker | |
echo "src-git softethervpn https://github.com/el1n/OpenWRT-package-softether.git" >> feeds.conf.default | |
./scripts/feeds update | |
./scripts/feeds install softethervpn | |
} | |
get_ipk(){ | |
cd $BUILDROOT | |
make prepare -j2 | |
make package/softethervpn/compile V=99 -j2 | |
find -name "softether*.ipk" -type f -exec /bin/mv {} $PACKAGES/ \; | |
} | |
cd $PATH_MAIN | |
construct_mips | |
cp $CONFIGS/.config_ar71xx $BUILDROOT/.config | |
get_ipk | |
cleaner | |
construct_mips | |
cp $CONFIGS/.config_atheros $BUILDROOT/.config | |
get_ipk | |
cleaner | |
construct_mips | |
cp $CONFIGS/.config_brcm47xx $BUILDROOT/.config | |
get_ipk | |
cleaner | |
construct_mips | |
cp $CONFIGS/.config_brcm63xx $BUILDROOT/.config | |
get_ipk | |
cleaner | |
construct_mips | |
cp $CONFIGS/.config_ramips $BUILDROOT/.config | |
get_ipk | |
cleaner | |
construct_mips | |
cp $CONFIGS/.config_x86 $BUILDROOT/.config | |
get_ipk | |
cleaner |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment