Skip to content
Snippets Groups Projects
Commit 2fd4eaa9 authored by MrMM's avatar MrMM
Browse files

Break loop if ssid is correct

parent 1c0bd14e
No related branches found
No related tags found
No related merge requests found
...@@ -26,6 +26,7 @@ then ...@@ -26,6 +26,7 @@ then
then then
echo "SSID $CURRENT_SSID is correct, noting to do" echo "SSID $CURRENT_SSID is correct, noting to do"
HUP_NEEDED=0 HUP_NEEDED=0
break
fi fi
CURRENT_SSID=`grep "^ssid=$OFFLINE_SSID" $HOSTAPD | cut -d"=" -f2` CURRENT_SSID=`grep "^ssid=$OFFLINE_SSID" $HOSTAPD | cut -d"=" -f2`
if [ $CURRENT_SSID == $OFFLINE_SSID ] if [ $CURRENT_SSID == $OFFLINE_SSID ]
...@@ -46,6 +47,7 @@ else ...@@ -46,6 +47,7 @@ else
then then
echo "SSID $CURRENT_SSID is correct, noting to do" echo "SSID $CURRENT_SSID is correct, noting to do"
HUP_NEEDED=0 HUP_NEEDED=0
break
fi fi
CURRENT_SSID=`grep "^ssid=$ONLINE_SSID" $HOSTAPD | cut -d"=" -f2` CURRENT_SSID=`grep "^ssid=$ONLINE_SSID" $HOSTAPD | cut -d"=" -f2`
if [ $CURRENT_SSID == $ONLINE_SSID ] if [ $CURRENT_SSID == $ONLINE_SSID ]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment