From 67f6286aae161bf160084c8b687316b0c3c3ceb8 Mon Sep 17 00:00:00 2001 From: elschnorro77 <57951003+elschnorro77@users.noreply.github.com> Date: Thu, 5 Mar 2020 19:50:33 +0100 Subject: [PATCH] Update change_router_ssidpw.sh --- backend/shell-scripts/change_router_ssidpw.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/shell-scripts/change_router_ssidpw.sh b/backend/shell-scripts/change_router_ssidpw.sh index c6b6c40..d9f9da5 100644 --- a/backend/shell-scripts/change_router_ssidpw.sh +++ b/backend/shell-scripts/change_router_ssidpw.sh @@ -4,4 +4,4 @@ ssid=$1; pw=$2; sudo sed -i "s/psk=.*/psk=\"$pw\"/" /etc/wpa_supplicant/wpa_supplicant.conf; -sudo sed -i "s/ssid=.*/ssid=\"$ssid\"/" /etc/wpa_supplicant/wpa_supplicant.conf; +sudo sed -i "s/^[[:blank:]]*ssid=.*/ssid=\"$ssid\"/" /etc/wpa_supplicant/wpa_supplicant.conf;