From ce6bf34f6058a3553d8bf67be19f0d666bbfce1e Mon Sep 17 00:00:00 2001 From: Alexandre CATTEAU Date: Sun, 12 Nov 2023 13:38:12 +0100 Subject: [PATCH] Add Wi-Fi configuration to setup script --- setup.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/setup.sh b/setup.sh index 7b523bd..60a681a 100755 --- a/setup.sh +++ b/setup.sh @@ -73,6 +73,13 @@ echo "Editing OpenSSH daemon config..." sed -i -e "s/#PasswordAuthentication yes/PasswordAuthentication no/g" /etc/ssh/sshd_config sed -i -e "s/PermitRootLogin yes/PermitRootLogin no/g" /etc/ssh/sshd_config +# NetworkManager Wi-Fi config +if [[ $sbc = 'orangepizero' ]]; then # TODO other SBCs? + echo "Disabling Wi-Fi MAC address randomization" + sed -i -e "s/wifi.mac-address-randomization=1/wifi.mac-address-randomization=no/g" /etc/NetworkManager/conf.d/10-override-wifi-random-mac-disable.conf +fi + + # specific setting for orangepizero if [[ $sbc = 'orangepizero' ]]; then echo "Setting CPU frequency to performance"