Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # Pull latest openwrt-zipit git and build it
- ROOTDIR="/path/to/openwrt-zipit-root/"
- OPENWRTDIR="openwrt-zipit"
- PKGDIR1="openwrt-zipit-packages"
- PKGDIR2="openwrt-packages"
- # Pull latest git
- echo "Syncing openwrt-zipit-packages with github"
- cd "$ROOTDIR$PKGDIR1"
- git pull
- echo "Syncing openwrt-packages with github"
- cd "$ROOTDIR$PKGDIR2"
- git pull
- echo "Syncing openwrt tree with github"
- cd "$ROOTDIR$OPENWRTDIR"
- git pull
- # Update package list
- make package/symlinks V=99
- scripts/feeds install -a
- make defconfig
- # Clean the bin dir if desired
- #rm -rf "$ROOTDIR$OPENWRTDIR/bin/pxa/*"
- # Build
- echo "Building... (use 'tail -f $ROOTDIR$OPENWRTDIR/bin/pxa/build.log' for status)"
- make IGNORE_ERRORS=1 V=99 2>&1> "$ROOTDIR$OPENWRTDIR/bin/pxa/build.log"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement