Update wireless.sh

This commit is contained in:
royal
2025-10-14 18:30:20 +03:00
committed by GitHub
parent b38fed275e
commit 29d3c87859
+2 -2
View File
@@ -3,13 +3,13 @@
WIRELESS_CONFIG="/etc/config/wireless" 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 cp "$WIRELESS_CONFIG" "$WIRELESS_CONFIG.bak" 2>/dev/null
if [ "$OPENWRT_VERSION" = "OpenWrt 24" ]; then if [ "$OPENWRT_VERSION" = "24" ]; then
cat > "$WIRELESS_CONFIG" << 'EOF' cat > "$WIRELESS_CONFIG" << 'EOF'
config wifi-device 'radio0' config wifi-device 'radio0'
option type 'mac80211' option type 'mac80211'