From 34d37c6f1013cd3030a65d779b087a39ef48a614 Mon Sep 17 00:00:00 2001 From: Ruledo Date: Sat, 11 Jan 2025 02:27:02 -0800 Subject: [PATCH] Removing bad code. Error handling must not exit. --- .../usr/local/bin/wifi-mesh-control.sh | 7 ------- 1 file changed, 7 deletions(-) mode change 100755 => 100644 foxbuntu/sysdrv/out/rootfs_uclibc_rv1106/usr/local/bin/wifi-mesh-control.sh diff --git a/foxbuntu/sysdrv/out/rootfs_uclibc_rv1106/usr/local/bin/wifi-mesh-control.sh b/foxbuntu/sysdrv/out/rootfs_uclibc_rv1106/usr/local/bin/wifi-mesh-control.sh old mode 100755 new mode 100644 index 4ef054b..3b820b6 --- a/foxbuntu/sysdrv/out/rootfs_uclibc_rv1106/usr/local/bin/wifi-mesh-control.sh +++ b/foxbuntu/sysdrv/out/rootfs_uclibc_rv1106/usr/local/bin/wifi-mesh-control.sh @@ -17,12 +17,6 @@ get_mobile_wifi_state() { set_mobile_wifi_state() { local state="$1" local meshtastic_output - - if [[ "$(meshtastic --host 127.0.0.1 --get network.wifi_enabled 2>&1 | grep -i refused)" ]] || [[ ! "$(meshtastic --host 127.0.0.1 --get network.wifi_enabled)" ]]; then - log "Error connecting to MeshtasticD. Aborting." - exit 2 - fi - if [[ "$state" == "up" ]]; then meshtastic_output=$(meshtastic --host 127.0.0.1 --set network.wifi_enabled true 2>&1) else @@ -98,4 +92,3 @@ monitor_changes() { validate_wifi_state_file sync_states monitor_changes -