Add Wi-Fi configuration to setup script

This commit is contained in:
Alexandre CATTEAU 2023-11-12 13:38:12 +01:00
parent 91c990f908
commit ce6bf34f60

View File

@ -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"