From a5c5cf3e8f172b8471d4bab6ab2c2a654b868f86 Mon Sep 17 00:00:00 2001 From: viktorxda <35473052+viktorxda@users.noreply.github.com> Date: Sat, 19 Jul 2025 21:16:04 +0200 Subject: [PATCH] Package: remove wifibroadcast-ext --- general/package/Config.in | 1 - general/package/wifibroadcast-ext/Config.in | 4 - .../wifibroadcast-ext/files/S991temp_monitor | 18 ----- .../wifibroadcast-ext/files/channels.sh | 41 ---------- .../wifibroadcast-ext/files/temp_monitor | 74 ------------------- .../wifibroadcast-ext/wifibroadcast-ext.mk | 16 ---- 6 files changed, 154 deletions(-) delete mode 100644 general/package/wifibroadcast-ext/Config.in delete mode 100644 general/package/wifibroadcast-ext/files/S991temp_monitor delete mode 100644 general/package/wifibroadcast-ext/files/channels.sh delete mode 100644 general/package/wifibroadcast-ext/files/temp_monitor delete mode 100644 general/package/wifibroadcast-ext/wifibroadcast-ext.mk diff --git a/general/package/Config.in b/general/package/Config.in index 1703eaeb..68f2a403 100644 --- a/general/package/Config.in +++ b/general/package/Config.in @@ -102,7 +102,6 @@ source "$BR2_EXTERNAL_GENERAL_PATH/package/venc-openipc/Config.in" source "$BR2_EXTERNAL_GENERAL_PATH/package/vtund-openipc/Config.in" source "$BR2_EXTERNAL_GENERAL_PATH/package/w1-ds18b20/Config.in" source "$BR2_EXTERNAL_GENERAL_PATH/package/webrtc-audio-processing-openipc/Config.in" -source "$BR2_EXTERNAL_GENERAL_PATH/package/wifibroadcast-ext/Config.in" source "$BR2_EXTERNAL_GENERAL_PATH/package/wifibroadcast-ng/Config.in" source "$BR2_EXTERNAL_GENERAL_PATH/package/xiongmai-opensdk-xm510/Config.in" source "$BR2_EXTERNAL_GENERAL_PATH/package/xiongmai-osdrv-xm510/Config.in" diff --git a/general/package/wifibroadcast-ext/Config.in b/general/package/wifibroadcast-ext/Config.in deleted file mode 100644 index 519e79b9..00000000 --- a/general/package/wifibroadcast-ext/Config.in +++ /dev/null @@ -1,4 +0,0 @@ -config BR2_PACKAGE_WIFIBROADCAST_EXT - bool "wifibroadcast-ext" - help - Additional scripts for wifibroadcast-ng diff --git a/general/package/wifibroadcast-ext/files/S991temp_monitor b/general/package/wifibroadcast-ext/files/S991temp_monitor deleted file mode 100644 index 3cf6907b..00000000 --- a/general/package/wifibroadcast-ext/files/S991temp_monitor +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/sh - -case "$1" in - start) - echo "Starting temperature check..." - temp_monitor &>/dev/null & - ;; - - stop) - echo "Stopping temperature check..." - killall -q temp_monitor - ;; - - *) - echo "Usage: $0 {start|stop}" - exit 1 - ;; -esac diff --git a/general/package/wifibroadcast-ext/files/channels.sh b/general/package/wifibroadcast-ext/files/channels.sh deleted file mode 100644 index eeba8df6..00000000 --- a/general/package/wifibroadcast-ext/files/channels.sh +++ /dev/null @@ -1,41 +0,0 @@ -#!/bin/sh - -case "$1" in - 5) - echo "Channel5 change." - channel5.sh "$2" - ;; - 6) - echo "Channel6 change." - channel6.sh "$2" - ;; - 7) - echo "Channel7 change." - channel7.sh "$2" - ;; - 8) - echo "Channel8 change." - channel8.sh "$2" - ;; - 9) - echo "Channel9 change." - channel9.sh "$2" - ;; - 10) - echo "Channel10 change." - channel10.sh "$2" - ;; - 11) - echo "Channel11 change." - channel11.sh "$2" - ;; - 12) - echo "Channel12 change." - channel12.sh "$2" - ;; - *) - echo "No valid channel specified." - ;; -esac - -exit 0 diff --git a/general/package/wifibroadcast-ext/files/temp_monitor b/general/package/wifibroadcast-ext/files/temp_monitor deleted file mode 100644 index e0c31ff3..00000000 --- a/general/package/wifibroadcast-ext/files/temp_monitor +++ /dev/null @@ -1,74 +0,0 @@ -#!/bin/sh -# Define temperature thresholds: -NORMAL_THRESHOLD=85 # Normal if below 85°C -REBOOT_THRESHOLD=100 # Reboot if 100°C or higher - -# --- Get Adapter info --- -for card in $(lsusb | awk '{print $6}' | sort | uniq); do - case "$card" in - "0bda:8812" | "0bda:881a" | "0b05:17d2" | "2357:0101" | "2604:0012") - driver=88XXau - ;; - "0bda:a81a") - driver=8812eu - ;; - "0bda:f72b" | "0bda:b733") - driver=8733bu - ;; - esac -done -wifi_adapter=""$driver"" -echo "Wifi adapter found: $driver" - -while true; do - # --- Get VTX Temperature --- - # Example output from ipcinfo --temp: "39.00" - vtx_temp=$(ipcinfo --temp) - vtx_int=$(echo "$vtx_temp" | cut -d. -f1) - - adapter_temp=0 - if [ "$wifi_adapter" = "8733bu" ]; then - # Expected format: "rf_path: 0, thermal_value: 37, offset: 45, temperature: 20" - adapter_temp=$(grep -o 'temperature: [0-9]*' /proc/net/rtl8733bu/wlan0/thermal_state | awk '{print $2}') - elif [ "$wifi_adapter" = "88XXau" ]; then - echo "Adapter 88XXau temperature extraction not implemented yet." - adapter_temp=0 - elif [ "$wifi_adapter" = "8812eu" ]; then - if [ -f /proc/net/rtl88x2eu/wlan0/thermal_state ]; then - # Extract both temperature values and choose the highest - adapter_temp=$(grep -o 'temperature: [0-9]*' /proc/net/rtl88x2eu/wlan0/thermal_state | awk '{print $2}' | sort -n | tail -1) - else - echo "Thermal state file for 8812eu not found." - adapter_temp=0 - fi - else - echo "Unknown adapter type: $wifi_adapter" - fi - - # Fallback if adapter_temp is empty - if [ -z "$adapter_temp" ]; then - adapter_temp=0 - fi - - echo "VTX temperature: ${vtx_temp}°C, Adapter temperature: ${adapter_temp}°C" - - # --- Determine the Highest Temperature --- - if [ "$adapter_temp" -gt "$vtx_int" ]; then - max_temp=$adapter_temp - else - max_temp=$vtx_int - fi - - # --- Determine the current state based on max_temp --- - if [ "$max_temp" -lt "$NORMAL_THRESHOLD" ]; then - echo "All is well... Nothing to do" > /dev/null - elif [ "$max_temp" -lt "$REBOOT_THRESHOLD" ]; then - echo "Warning: High temperature was detected.\nVTX Temp:&T WifiTemp:&W &L30 &G8 &F18" > /tmp/MSPOSD.msg - else - echo "VTX will reboot due to thermal state...\nVTX Temp:&T WifiTemp:&W &L30 &G8 &F18.\nRebooting in 15 seconds..." > /tmp/MSPOSD.msg - sleep 15 - reboot - fi - - sleep 5 -done diff --git a/general/package/wifibroadcast-ext/wifibroadcast-ext.mk b/general/package/wifibroadcast-ext/wifibroadcast-ext.mk deleted file mode 100644 index d15e0c34..00000000 --- a/general/package/wifibroadcast-ext/wifibroadcast-ext.mk +++ /dev/null @@ -1,16 +0,0 @@ -################################################################################ -# -# wifibroadcast-ext -# -################################################################################ - -define WIFIBROADCAST_EXT_INSTALL_TARGET_CMDS - $(INSTALL) -m 755 -d $(TARGET_DIR)/etc/init.d - $(INSTALL) -m 755 -t $(TARGET_DIR)/etc/init.d $(WIFIBROADCAST_EXT_PKGDIR)/files/S991temp_monitor - - $(INSTALL) -m 755 -d $(TARGET_DIR)/usr/bin - $(INSTALL) -m 755 -t $(TARGET_DIR)/usr/bin $(WIFIBROADCAST_EXT_PKGDIR)/files/temp_monitor - $(INSTALL) -m 755 -t $(TARGET_DIR)/usr/bin $(WIFIBROADCAST_EXT_PKGDIR)/files/channels.sh -endef - -$(eval $(generic-package))