From a4433fa013b004989319532a1af72b61ba019622 Mon Sep 17 00:00:00 2001 From: tech Date: Tue, 16 Apr 2024 12:37:56 +0200 Subject: [PATCH] Update openwrt_wifi_up.sh --- openwrt_wifi_up.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openwrt_wifi_up.sh b/openwrt_wifi_up.sh index f438d31..363260b 100755 --- a/openwrt_wifi_up.sh +++ b/openwrt_wifi_up.sh @@ -4,8 +4,8 @@ ### This script checks if the 2 wifi interfaces are UP and ENABLED -HOST="$(cat /etc/config/system | grep "hostname")" -topicurl=https://172.26.0.15/net_alerts +HOST="$(cat /etc/config/system | grep "hostname" | awk '{print $3}')" +topicurl=https://172.26.0.15/hangar_servers RADIO_STATUS=$(wifi status | grep -c "\"up\": true") DEVICE_STATUS=$(wifi status | grep -c "\"disabled\": false")