diff options
author | Serge Schneider <[email protected]> | 2019-06-07 16:21:03 +0100 |
---|---|---|
committer | Serge Schneider <[email protected]> | 2019-06-07 16:21:03 +0100 |
commit | e14a4035331f23a73cc8ee99d0ffa7bba58e915f (patch) | |
tree | b9af6d05a92642eaab3c3792d05f3f8fb3977160 | |
parent | ba8909f05dca5347252e47afc2e23ca8296d7437 (diff) |
stage2: Disable wifi on 5GHz models
-rwxr-xr-x | stage2/02-net-tweaks/01-run.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/stage2/02-net-tweaks/01-run.sh b/stage2/02-net-tweaks/01-run.sh index ce5c73f..3ba2ef9 100755 --- a/stage2/02-net-tweaks/01-run.sh +++ b/stage2/02-net-tweaks/01-run.sh @@ -15,3 +15,8 @@ on_chroot <<EOF wpa_passphrase "${WPA_ESSID}" "${WPA_PASSWORD}" >> "/etc/wpa_supplicant/wpa_supplicant.conf" EOF fi + +# Disable wifi on 5GHz models +mkdir -p "${ROOTFS_DIR}/var/lib/systemd/rfkill/" +echo 1 > "${ROOTFS_DIR}/var/lib/systemd/rfkill/platform-3f300000.mmc:wlan" +echo 1 > "${ROOTFS_DIR}/var/lib/systemd/rfkill/platform-fe300000.mmc:wlan" |