Skip to content
Snippets Groups Projects
Commit cc0e1f4f authored by rubo77's avatar rubo77
Browse files

Allow SSIDs containing slashes

parent dfb90637
Branches
Tags
No related merge requests found
......@@ -43,7 +43,7 @@ then
if [ $CURRENT_SSID == $OFFLINE_SSID ]
then
logger -s -t "gluon-offline-ssid" -p 5 "TQ is $GATEWAY_TQ, SSID is $CURRENT_SSID, change to $ONLINE_SSID" #Write Info to Syslog
sed -i s/^ssid=$CURRENT_SSID/ssid=$ONLINE_SSID/ $HOSTAPD
sed -i "s~^ssid=$CURRENT_SSID~ssid=$ONLINE_SSID~" $HOSTAPD
HUP_NEEDED=1 # HUP here would be to early for dualband devices
else
echo "There is something wrong, did not find SSID $ONLINE_SSID or $OFFLINE_SSID"
......@@ -66,7 +66,7 @@ then
if [ $CURRENT_SSID == $ONLINE_SSID ]
then
logger -s -t "gluon-offline-ssid" -p 5 "TQ is $GATEWAY_TQ, SSID is $CURRENT_SSID, change to $OFFLINE_SSID" #Write Info to Syslog
sed -i s/^ssid=$ONLINE_SSID/ssid=$OFFLINE_SSID/ $HOSTAPD
sed -i "s~^ssid=$ONLINE_SSID~ssid=$OFFLINE_SSID~" $HOSTAPD
HUP_NEEDED=1 # HUP here would be to early for dualband devices
else
echo "There is something wrong, did not find SSID $ONLINE_SSID or $OFFLINE_SSID"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment