aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2018-06-13 12:59:58 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2018-06-13 13:44:57 +0000
commit895f79e6cbde3cd7f76f896572fee0af235e397e (patch)
tree405f678a649954100122c70e46a06b6efe0f79b8
parentd0a77444667d96ff723100e8c06222a0e24cbac4 (diff)
downloadalpine-conf-895f79e6cbde3cd7f76f896572fee0af235e397e.tar.bz2
alpine-conf-895f79e6cbde3cd7f76f896572fee0af235e397e.tar.xz
setup-alpine: make quick mode even quicker
When -q option is specified: - skip set root password - auto configure network (dhcp)
-rw-r--r--setup-alpine.in4
1 files changed, 2 insertions, 2 deletions
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