diff options
author | Serge Schneider <[email protected]> | 2020-09-23 20:02:52 +0100 |
---|---|---|
committer | Serge Schneider <[email protected]> | 2020-09-23 20:02:52 +0100 |
commit | 8808124cc319932f5fff4d8c5b78a9b6de95d642 (patch) | |
tree | 0286d12828d5a87ea5cf45bf1e8921e27b6ce249 /stage2 | |
parent | bc3970f9e397c495177ff346b1f359d51bc79540 (diff) | |
parent | d1596451b9d81c360c6cf89a10ed1c30e19e4e02 (diff) |
Merge branch 'master' into arm64
Diffstat (limited to 'stage2')
-rwxr-xr-x | stage2/02-net-tweaks/01-run.sh | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/stage2/02-net-tweaks/01-run.sh b/stage2/02-net-tweaks/01-run.sh index 0929755..d82381b 100755 --- a/stage2/02-net-tweaks/01-run.sh +++ b/stage2/02-net-tweaks/01-run.sh @@ -25,7 +25,12 @@ network={ EOL fi -# Disable wifi on 5GHz models +# Disable wifi on 5GHz models if WPA_COUNTRY is not set mkdir -p "${ROOTFS_DIR}/var/lib/systemd/rfkill/" -echo 1 > "${ROOTFS_DIR}/var/lib/systemd/rfkill/platform-3f300000.mmcnr:wlan" -echo 1 > "${ROOTFS_DIR}/var/lib/systemd/rfkill/platform-fe300000.mmcnr:wlan" +if [ -n "$WPA_COUNTRY" ]; then + echo 0 > "${ROOTFS_DIR}/var/lib/systemd/rfkill/platform-3f300000.mmcnr:wlan" + echo 0 > "${ROOTFS_DIR}/var/lib/systemd/rfkill/platform-fe300000.mmcnr:wlan" +else + echo 1 > "${ROOTFS_DIR}/var/lib/systemd/rfkill/platform-3f300000.mmcnr:wlan" + echo 1 > "${ROOTFS_DIR}/var/lib/systemd/rfkill/platform-fe300000.mmcnr:wlan" +fi |