aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSerge Schneider <[email protected]>2019-06-07 16:21:03 +0100
committerSerge Schneider <[email protected]>2019-06-07 16:21:03 +0100
commite14a4035331f23a73cc8ee99d0ffa7bba58e915f (patch)
treeb9af6d05a92642eaab3c3792d05f3f8fb3977160
parentba8909f05dca5347252e47afc2e23ca8296d7437 (diff)
stage2: Disable wifi on 5GHz models
-rwxr-xr-xstage2/02-net-tweaks/01-run.sh5
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"