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" \