From 4a8ffd7991a5f3650cfc207222b5da397e242a40 Mon Sep 17 00:00:00 2001 From: "Brent, Yang Bohan" Date: Mon, 25 Mar 2019 00:08:03 +0800 Subject: [PATCH] Update netboot.sh --- netboot.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/netboot.sh b/netboot.sh index f4b71e2..5076d46 100644 --- a/netboot.sh +++ b/netboot.sh @@ -105,6 +105,10 @@ while [ $# -gt 0 ]; do -manually) MANUALLY=true ;; + -arch) + MACHARCH=$2 + shift + ;; *) echo "Illegal option $1" exit 1 @@ -126,7 +130,9 @@ COUNTRY=${COUNTRY:-US} PROTO=${PROTO:-http} HOST=${HOST:-deb.debian.org} DIR=${DIR:-/debian} +if [ -z "$SECURITY" ]; then ARCH=$(dpkg --print-architecture) +fi SUITE=${SUITE:-stretch} ADMIN=${ADMIN:-debian} TIME_ZONE=${TIME_ZONE:-UTC}