From e14a4035331f23a73cc8ee99d0ffa7bba58e915f Mon Sep 17 00:00:00 2001 From: Serge Schneider Date: Fri, 7 Jun 2019 16:21:03 +0100 Subject: [PATCH] stage2: Disable wifi on 5GHz models --- stage2/02-net-tweaks/01-run.sh | 5 +++++ 1 file changed, 5 insertions(+) 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 <> "/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"