diff options
author | Mikael Magnusson <mikma@users.sourceforge.net> | 2018-02-27 23:10:35 +0100 |
---|---|---|
committer | Mikael Magnusson <mikma@users.sourceforge.net> | 2018-02-27 23:10:35 +0100 |
commit | ee39be73b3e59bcd89816e3b38f5bb99da324b12 (patch) | |
tree | c91fa3e7cfb926c0bb11f4310f7127f82572b1c0 | |
parent | be3a3f756fdaf11a0f2ef0fef85e6c20ea2ea524 (diff) |
Install additional packages
-rwxr-xr-x | build.sh | 27 |
1 files changed, 27 insertions, 0 deletions
@@ -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 |