Skip to content

Commit

Permalink
Fix default wifi startup issue
Browse files Browse the repository at this point in the history
  • Loading branch information
CTCD authored Jun 27, 2024
1 parent f8d6f20 commit 76f30c6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 0 additions & 1 deletion .github/workflows/build-openwrt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ jobs:
exit 1
fi
DEVICE_NAME=$(echo $target_device | awk -F "DEVICE_" '{print $2}')
sed -i 's/disabled=1/disabled=0\n set wireless.${name}.country=US/' openwrt/package/network/config/wifi-scripts/files/lib/wifi/mac80211.sh
cat <<EOF >openwrt/.config
CONFIG_TARGET_$(echo $target_device | awk -F "_" '{print $2}')=y
CONFIG_TARGET_$(echo $target_device | awk -F "_" '{print $2}')_$(echo $target_device | awk -F "_" '{print $3}')=y
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/immortalwrt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ jobs:
exit 1
fi
DEVICE_NAME=$(echo $target_device | awk -F "DEVICE_" '{print $2}')
sed -i 's/disabled=.*/disabled=0\n set wireless.${name}.country=US/' immortalwrt/package/network/config/wifi-scripts/files/lib/wifi/mac80211.sh
cat <<EOF >immortalwrt/.config
CONFIG_TARGET_$(echo $target_device | awk -F "_" '{print $2}')=y
CONFIG_TARGET_$(echo $target_device | awk -F "_" '{print $2}')_$(echo $target_device | awk -F "_" '{print $3}')=y
Expand Down
4 changes: 4 additions & 0 deletions files/etc/uci-defaults/99-asu-defaults
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,8 @@ if [ -n "$pppoe_username" -a "$pppoe_password" ]; then
uci commit network
fi

uci set wireless.radio0.country='US'
uci set wireless.radio0.disabled='0'
uci commit wireless

echo "All done!"

0 comments on commit 76f30c6

Please sign in to comment.