Commit cf6ac1bf authored by Vladimir Bashkirtsev's avatar Vladimir Bashkirtsev

We should be able to handle SSID with space in it

parent b991f464
......@@ -68,7 +68,7 @@ reconfigure_wlan() {
local psk=`wlan_get_client_psk`
local int="wlan0"
if [ "$ssid" != "" ] && [ "$psk" != "" ]; then
wpa_passphrase $ssid $psk > /etc/wpa_supplicant/wpa_supplicant-$int.conf
wpa_passphrase "$ssid" "$psk" > /etc/wpa_supplicant/wpa_supplicant-$int.conf
systemctl restart wpa_supplicant@$int
if [ ! -f /etc/systemd/network/$int.network ]; then
echo "[Match]" > /etc/systemd/network/$int.network
......
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