summaryrefslogtreecommitdiff
path: root/setup-interfaces.in
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2021-01-06 14:16:30 +0100
committerNatanael Copa <ncopa@alpinelinux.org>2021-01-06 14:16:30 +0100
commit49470a2c3637395587e310165ef05b52f1913942 (patch)
tree647e0d680d73ab658c89f83ee31fe1bffbd81d36 /setup-interfaces.in
parent23728faf1d575471ccdf29fc6dcc5e848d6b0a5c (diff)
downloadalpine-conf-49470a2c3637395587e310165ef05b52f1913942.zip
setup-interfaces: fix wifi error handling
if wifi setup fails, return instead of recursively call prompt_for_interfaces
Diffstat (limited to 'setup-interfaces.in')
-rw-r--r--setup-interfaces.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/setup-interfaces.in b/setup-interfaces.in
index cf02f6b..009973c 100644
--- a/setup-interfaces.in
+++ b/setup-interfaces.in
@@ -217,7 +217,7 @@ config_iface() {
echo "raw_device=\"$raw_device\"" >> $conf
fi
if is_wifi $iface; then
- apk add --quiet --no-progress wireless-tools wpa_supplicant || prompt_for_interfaces
+ apk add --quiet --no-progress wireless-tools wpa_supplicant || return
echo "Available wireless networks (scanning):"
if find_essids $iface; then
ask "Type the wireless network name to connect to:"
@@ -229,7 +229,7 @@ config_iface() {
config_wpa_supp $iface "$essid" "$psk"
else
echo -e "\nNo available wireless networks\n"
- prompt_for_interfaces
+ return
fi
fi
# use ipcalc to validate the address. we do accept /mask