Skip to content

Commit

Permalink
Update:ctr.inotify
Browse files Browse the repository at this point in the history
  • Loading branch information
MoGuangYu committed Nov 17, 2024
1 parent b92deab commit f27f974
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion box_bll/scripts/ctr.inotify
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ check_module_service() {
done

if [ -n "$current_ip" ]; then
log_msg "网络发生变化!"
log_msg "WiFi已连接: ${ssid}"
log_msg "IP地址:${current_ip}"
echo "ssid:${ssid}" > "$last_wifi_state_file"
Expand Down Expand Up @@ -157,7 +158,8 @@ check_module_service() {
fi

elif [ "$wifi_status" = "not_wifi" ]; then
log_msg "WiFi已断开!"
log_msg "网络发生变化!"
log_msg "当前WiFi已断开!"
if [ "$use_module_on_wifi_disconnect" = "true" ]; then
if [ "$current_state" != "enabled" ]; then
rm /data/adb/modules/Surfing/disable 2>/dev/null
Expand Down

0 comments on commit f27f974

Please sign in to comment.