File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -82,6 +82,7 @@ ACTIVE_MODE=
8282while true ;
8383do
8484 if [[ ${ACTIVE_MODE} -eq " ap" ]]; then
85+ echo " Running in access point mode, next check in 300 seconds"
8586 sleep 300
8687 if [[ areKnownNetworksNearBy ]]; then
8788 systemctl stop omnipy.service
9899 systemctl start omnipy.service
99100 fi
100101 elif [[ ${ACTIVE_MODE} -eq " client" ]]; then
102+ echo " Running in wi-fi client mode, next check in 60 seconds"
101103 sleep 60
102104 if [[ ! IsWifiConnected ]]; then
103105 systemctl stop omnipy.service
113115 systemctl start omnipy.service
114116 fi
115117 else
118+ echo " Checking current network state"
116119 if [[ ! IsWifiConnected ]]; then
120+ echo " Wi-fi not connected, scanning"
117121 if [[ areKnownNetworksNearBy ]]; then
122+ echo " Found known networks, will try to connect"
118123 CreateWifiClient
119124 fi
120125 fi
You can’t perform that action at this time.
0 commit comments