File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 110110 systemctl stop omnipy-beacon.service
111111 systemctl stop omnipy.service
112112 echo " Known networks are nearby, deactivating hotspot and connecting to wi-fi"
113- if ! CreateWifiClient; then
113+ CreateWifiClient
114+ if ! IsWifiConnected; then
114115 echo " Failed to connect to wifi, going back into hotspot mode"
115116 CreateHotSpot
116117 ACTIVE_MODE=" ap"
126127 sleep 60
127128 if ! IsWifiConnected; then
128129 echo " Wi-fi disconnected, retrying"
129- if ! CreateWifiClient; then
130+ CreateWifiClient
131+ if ! IsWifiConnected; then
130132 echo " No wi-fi connection, creating hot-spot"
131133 CreateHotSpot
132134 ACTIVE_MODE=" ap"
141143 elif [[ ${ACTIVE_MODE} == " client-only" ]]; then
142144 if ! IsWifiConnected; then
143145 echo " Wi-fi disconnected, retrying"
144- if ! CreateWifiClient; then
146+ CreateWifiClient
147+ if ! IsWifiConnected; then
145148 echo " Wi-fi connection failed, waiting to retry"
146149 sleep 120
147150 fi
You can’t perform that action at this time.
0 commit comments