Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
alpine
alpine-conf
Commits
2f2a5b18
Commit
2f2a5b18
authored
Oct 28, 2011
by
Natanael Copa
Browse files
setup-alpine: implement -q for quick mode
less questions
parent
f573d0ea
Changes
1
Hide whitespace changes
Inline
Side-by-side
setup-alpine.in
View file @
2f2a5b18
...
...
@@ -31,12 +31,13 @@ __EOF__
exit
1
}
while
getopts
"af:c:h"
opt
;
do
while
getopts
"af:c:h
q
"
opt
;
do
case
$opt
in
a
)
ARCHIVE
=
yes
;;
f
)
USEANSWERFILE
=
"
$OPTARG
"
;;
c
)
CREATEANSWERFILE
=
"
$OPTARG
"
;;
h
)
usage
;;
q
)
quick
=
1
;;
*
)
usage
;;
esac
done
...
...
@@ -121,8 +122,10 @@ grep '^iface.*dhcp' $ROOT/etc/network/interfaces > /dev/null ||\
# set root password
[
-z
"
$NOCOMMIT
"
]
&&
while
!
passwd
;
do
echo
"Please retry."
;
done
# pick timezone
$PREFIX
/sbin/setup-timezone
${
TIMEZONEOPTS
}
if
[
-z
"
$quick
"
]
;
then
# pick timezone
$PREFIX
/sbin/setup-timezone
${
TIMEZONEOPTS
}
fi
rc-update
-q
add networking boot
rc-update
-q
add urandom boot
...
...
@@ -151,6 +154,11 @@ sed -i -e "s/^127\.0\.0\.1.*/127.0.0.1\t${_hn}.${_dn:-$(get_fqdn)} ${_hn} localh
$PREFIX
/sbin/setup-apkrepos
${
APKREPOSOPTS
}
# lets stop here if in "quick mode"
if
[
"
$quick
"
=
1
]
;
then
exit
0
fi
$PREFIX
/sbin/setup-sshd
${
SSHDOPTS
}
$PREFIX
/sbin/setup-ntp
${
NTPOPTS
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment