From 895f79e6cbde3cd7f76f896572fee0af235e397e Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Wed, 13 Jun 2018 12:59:58 +0000 Subject: setup-alpine: make quick mode even quicker When -q option is specified: - skip set root password - auto configure network (dhcp) --- setup-alpine.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'setup-alpine.in') diff --git a/setup-alpine.in b/setup-alpine.in index 561d4ef..9bae702 100644 --- a/setup-alpine.in +++ b/setup-alpine.in @@ -44,7 +44,7 @@ while getopts "aef:c:hq" opt ; do c) CREATEANSWERFILE="$OPTARG";; e) empty_root_password=1;; h) usage;; - q) quick=1; APKREPOSOPTS="-1"; HOSTNAMEOPTS="alpine";; + q) empty_root_password=1; quick=1; APKREPOSOPTS="-1"; HOSTNAMEOPTS="alpine";; *) usage;; esac done @@ -129,7 +129,7 @@ fi if [ -n "$INTERFACESOPTS" ]; then printf "$INTERFACESOPTS" | $PREFIX/sbin/setup-interfaces -i else - $PREFIX/sbin/setup-interfaces + $PREFIX/sbin/setup-interfaces ${quick:+-a} fi # start the networking /etc/init.d/networking --quiet start >/dev/null -- cgit v1.2.3