From 29d3c8785963e235f2d49edfcbd5ac9fb10e6c71 Mon Sep 17 00:00:00 2001 From: royal <137996547+ritascarlet@users.noreply.github.com> Date: Tue, 14 Oct 2025 18:30:20 +0300 Subject: [PATCH] Update wireless.sh --- wireless.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wireless.sh b/wireless.sh index 33a7d79..8d5d2e6 100644 --- a/wireless.sh +++ b/wireless.sh @@ -3,13 +3,13 @@ WIRELESS_CONFIG="/etc/config/wireless" -OPENWRT_VERSION=$(cat /etc/os-release | grep 'OPENWRT_RELEASE=' | cut -d'"' -f2 | cut -d'.' -f1) +OPENWRT_VERSION=$(cat /etc/os-release | grep 'VERSION_ID=' | cut -d'"' -f2 | cut -d'.' -f1) cp "$WIRELESS_CONFIG" "$WIRELESS_CONFIG.bak" 2>/dev/null -if [ "$OPENWRT_VERSION" = "OpenWrt 24" ]; then +if [ "$OPENWRT_VERSION" = "24" ]; then cat > "$WIRELESS_CONFIG" << 'EOF' config wifi-device 'radio0' option type 'mac80211'