Commit 895f79e6 authored by Natanael Copa's avatar Natanael Copa

setup-alpine: make quick mode even quicker

When -q option is specified:
- skip set root password
- auto configure network (dhcp)
parent d0a77444
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment