summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2017-05-23 09:42:15 +0200
committerCarlo Landmeter <clandmeter@gmail.com>2017-05-23 09:42:15 +0200
commit10167e0964af0c8d5a968b0be22e3c2f3c5f3646 (patch)
tree8d06f44862010869fab19441f0cbf1b45a7b89b6
parentc15da3bf6ba6d7b05cac6c6182efdd4149554b82 (diff)
downloadalpine-conf-10167e0964af0c8d5a968b0be22e3c2f3c5f3646.zip
setup-interfaces: allow spaces in ssid and psk
fixes #7260
-rw-r--r--setup-interfaces.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/setup-interfaces.in b/setup-interfaces.in
index 54f0f92..b82f02f 100644
--- a/setup-interfaces.in
+++ b/setup-interfaces.in
@@ -214,11 +214,11 @@ config_iface() {
if find_essids $iface; then
ask "Type the wireless network name to connect to:"
local essid=$resp
- if wlan_is_not_open $iface $essid; then
+ if wlan_is_not_open $iface "$essid"; then
ask "Type the \"$essid\" network Pre-Shared Key:"
psk=$resp
fi
- config_wpa_supp $iface $essid $psk
+ config_wpa_supp $iface "$essid" "$psk"
else
echo -e "\nNo available wireless networks\n"
prompt_for_interfaces