File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -81,11 +81,11 @@ ACTIVE_MODE=
8181
8282while true ;
8383do
84- if [[ ${ACTIVE_MODE} eq " ap" ]]; then
84+ if [[ ${ACTIVE_MODE} - eq " ap" ]]; then
8585 sleep 300
8686 if [[ areKnownNetworksNearBy ]]; then
8787 systemctl stop omnipy.service
88- KillHotspot
88+ KillHotSpot
8989 echo " Hotspot Deactivated, Bringing Wifi Up"
9090 CreateWifiClient
9191 if [[ ! IsWifiConnected ]]; then
9797 fi
9898 systemctl start omnipy.service
9999 fi
100- elif [[ ${ACTIVE_MODE} eq " client" ]]; then
100+ elif [[ ${ACTIVE_MODE} - eq " client" ]]; then
101101 sleep 60
102102 if [[ ! IsWifiConnected ]]; then
103103 systemctl stop omnipy.service
113113 systemctl start omnipy.service
114114 fi
115115 else
116- if [[ areKnownNetworksNearBy ]]; then
117- CreateWifiClient
116+ if [[ ! IsWifiConnected ]]; then
117+ if [[ areKnownNetworksNearBy ]]; then
118+ CreateWifiClient
119+ fi
118120 fi
119121
120122 if [[ ! IsWifiConnected ]]; then
You can’t perform that action at this time.
0 commit comments