From 877728878f889ac7b31a80c85086225c7ee63567 Mon Sep 17 00:00:00 2001 From: rootzoll Date: Thu, 23 Jul 2020 13:31:45 +0200 Subject: [PATCH] fix multiline string --- home.admin/config.scripts/internet.wifi.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/home.admin/config.scripts/internet.wifi.sh b/home.admin/config.scripts/internet.wifi.sh index f8918d14..edbad93f 100755 --- a/home.admin/config.scripts/internet.wifi.sh +++ b/home.admin/config.scripts/internet.wifi.sh @@ -43,7 +43,8 @@ ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev update_config=1 network={ ssid='${ssid}' - scan_ssid=1\n psk='${password}' + scan_ssid=1 + psk='${password}' key_mgmt=WPA-PSK }" echo "${wifiConfig}" > "/home/admin/wpa_supplicant.conf" @@ -56,7 +57,9 @@ network={ elif [ "$2" == "off" ]; then - wifiConfig="country=US\nctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev\nupdate_config=1" + wifiConfig="country=US +ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev +update_config=1" echo "${wifiConfig}" > "/home/admin/wpa_supplicant.conf" sudo chown root:root /home/admin/wpa_supplicant.conf sudo mv /home/admin/wpa_supplicant.conf /etc/wpa_supplicant/wpa_supplicant.conf