From 275e1dc5dc7d93fe41f31bf2e783ac082eb5e393 Mon Sep 17 00:00:00 2001 From: tech Date: Mon, 29 Apr 2024 15:47:42 +0200 Subject: [PATCH] Update openwrt_wifi_up.sh --- openwrt_wifi_up.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openwrt_wifi_up.sh b/openwrt_wifi_up.sh index 544af3f..2697809 100755 --- a/openwrt_wifi_up.sh +++ b/openwrt_wifi_up.sh @@ -10,7 +10,7 @@ topicurl=https://NTFY_SERVER_IP/hangar_servers RADIO_STATUS=$(wifi status | grep -c "\"up\": true") DEVICE_STATUS=$(wifi status | grep -c "\"disabled\": false") - if [ ${RADIO_STATUS} != 2 ] || [ ${DEVICE_STATUS} != 2 ] ; then + if [ ${RADIO_STATUS} -lt 2 ] || [ ${DEVICE_STATUS} -lt 2 ] ; then curl -k --retry 3 \ -d "wifi down in $HOST" \ -H "Title: Wifi down in $HOST" \