From ee39be73b3e59bcd89816e3b38f5bb99da324b12 Mon Sep 17 00:00:00 2001 From: Mikael Magnusson Date: Tue, 27 Feb 2018 23:10:35 +0100 Subject: Install additional packages --- build.sh | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) 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 ] [-p|--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 -- cgit v1.2.3