Skip to content

Instantly share code, notes, and snippets.

@davesteele
Created December 7, 2024 18:53
Show Gist options
  • Save davesteele/9b5f566ad976b083b3c278e0e1fdfcfe to your computer and use it in GitHub Desktop.
Save davesteele/9b5f566ad976b083b3c278e0e1fdfcfe to your computer and use it in GitHub Desktop.
Enable Wi-Fi on Raspbios when no regulatory domain set
# Enable wifi, even if no regulatory domain is set
#
# Supporting Comitup on Raspbios
#
# copy to e.g. /etc/systemd/system/
# "systemctl enable wifi-on.service"
[Unit]
Description=Turn wifi on, regardless of regulatory domain
After=network.target network-online.target
Wants=network-online.target
[Service]
Type=oneshot
ExecStart=/usr/bin/nmcli radio wifi on
[Install]
WantedBy=NetworkManager.service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment