Update openwrt_wifi_up.sh

This commit is contained in:
tech 2024-04-16 12:37:56 +02:00
parent 60ad3dd13b
commit a4433fa013
1 changed files with 2 additions and 2 deletions

View File

@ -4,8 +4,8 @@
### This script checks if the 2 wifi interfaces are UP and ENABLED ### This script checks if the 2 wifi interfaces are UP and ENABLED
HOST="$(cat /etc/config/system | grep "hostname")" HOST="$(cat /etc/config/system | grep "hostname" | awk '{print $3}')"
topicurl=https://172.26.0.15/net_alerts topicurl=https://172.26.0.15/hangar_servers
RADIO_STATUS=$(wifi status | grep -c "\"up\": true") RADIO_STATUS=$(wifi status | grep -c "\"up\": true")
DEVICE_STATUS=$(wifi status | grep -c "\"disabled\": false") DEVICE_STATUS=$(wifi status | grep -c "\"disabled\": false")