From 10167e0964af0c8d5a968b0be22e3c2f3c5f3646 Mon Sep 17 00:00:00 2001 From: Carlo Landmeter Date: Tue, 23 May 2017 09:42:15 +0200 Subject: setup-interfaces: allow spaces in ssid and psk fixes #7260 --- setup-interfaces.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'setup-interfaces.in') 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 -- cgit v1.2.3