From 76dabcb45db7d489064bce70c6a28a4201c323d4 Mon Sep 17 00:00:00 2001 From: "Brent, Yang Bohan" Date: Mon, 25 Mar 2019 00:10:54 +0800 Subject: [PATCH] Update netboot.sh --- netboot.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/netboot.sh b/netboot.sh index 2e035ce..8af70b0 100644 --- a/netboot.sh +++ b/netboot.sh @@ -106,7 +106,7 @@ while [ $# -gt 0 ]; do MANUALLY=true ;; -arch) - MACHARCH=$2 + ARCH=$2 shift ;; *) @@ -130,7 +130,7 @@ COUNTRY=${COUNTRY:-US} PROTO=${PROTO:-http} HOST=${HOST:-deb.debian.org} DIR=${DIR:-/debian} -if [ -z "$SECURITY" ]; then +if [ -z "$ARCH" ]; then ARCH=$(dpkg --print-architecture) fi SUITE=${SUITE:-stretch}