diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2012-03-21 20:06:18 +0100 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2012-03-21 20:06:18 +0100 |
commit | 94ab8c592f99d69994d1ff462dc6ccbc22035c99 (patch) | |
tree | f20d9fbf7529fb97762d063f0cd5c46a86b142ab /setup-interfaces.in | |
parent | 278ddf1a4ba5b76dae9aa9878bc04c84da26c9e7 (diff) | |
download | alpine-conf-94ab8c592f99d69994d1ff462dc6ccbc22035c99.tar.bz2 alpine-conf-94ab8c592f99d69994d1ff462dc6ccbc22035c99.tar.xz |
setup-interfaces: use yesno func
Diffstat (limited to 'setup-interfaces.in')
-rwxr-xr-x | setup-interfaces.in | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/setup-interfaces.in b/setup-interfaces.in index d9cda62..3a17c90 100755 --- a/setup-interfaces.in +++ b/setup-interfaces.in @@ -233,10 +233,14 @@ prompt_for_interfaces() { while [ "$answer" != "yes" ] && [ "$answer" != "no" ] ; do ask "Do you want to do any manual network configuration?" no - answer=$resp + case $resp in + y) answer=yes;; + n) answer=no;; + *) answer=$resp;; + esac done - if [ "$answer" = "yes" ]; then + if yesno "$answer"; then case "$EDITOR" in nano) pkg_inst nano;; vim) pkg_inst vim;; |