Commit 94ab8c59 authored by Natanael Copa's avatar Natanael Copa

setup-interfaces: use yesno func

parent 278ddf1a
......@@ -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;;
......
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