Skip to content

Commit

Permalink
Let NetworkManager turn wifi on if configured on raspbian
Browse files Browse the repository at this point in the history
  • Loading branch information
guysoft committed Dec 15, 2024
1 parent 23fcc0c commit e553cad
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/modules/network/start_chroot_script
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ fi
if [ "${BASE_DISTRO}" == "raspbian" ]; then
# Workaround rfkill not unblocking on boot
rm /var/lib/systemd/rfkill/*

if [ -f "/var/lib/NetworkManager/NetworkManager.state" ]; then
sed -i 's/WirelessEnabled=false/WirelessEnabled=true/g' /var/lib/NetworkManager/NetworkManager.state
fi
fi

if [ ! -f "/etc/rc.local" ];then
Expand Down

0 comments on commit e553cad

Please sign in to comment.