summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikael Magnusson <mikma@users.sourceforge.net>2018-02-27 23:10:35 +0100
committerMikael Magnusson <mikma@users.sourceforge.net>2018-02-27 23:10:35 +0100
commitee39be73b3e59bcd89816e3b38f5bb99da324b12 (patch)
treec91fa3e7cfb926c0bb11f4310f7127f82572b1c0
parentbe3a3f756fdaf11a0f2ef0fef85e6c20ea2ea524 (diff)
Install additional packages
-rwxr-xr-xbuild.sh27
1 files changed, 27 insertions, 0 deletions
diff --git a/build.sh b/build.sh
index 7c52504..793d079 100755
--- a/build.sh
+++ b/build.sh
@@ -7,7 +7,34 @@ subarch=64
ver=17.01.4
dist=lede
+usage() {
+ echo "Usage: $0 [-v|--version <version>] [-p|--packages <packages>] [--help]"
+ exit 1
+}
+temp=$(getopt -o "v:p:" -l "version:,packages:,help" -- "$@")
+eval set -- "$temp"
+while true; do
+ case "$1" in
+ -v|--version)
+ ver="$2"; shift 2
+ if test ver=snapshot; then
+ dist=openwrt
+ else
+ dist=lede
+ fi;;
+ -p|--packages)
+ packages="$2"; shift 2;;
+ --help)
+ usage;;
+ --)
+ shift; break;;
+ esac
+done
+
+if [ $# -ne 0 ]; then
+ usage
+fi
procd_url=https://github.com/openwrt/openwrt/branches/lede-17.01/package/system/procd
procd_extra_ver=lxd-3