Skip to content
Snippets Groups Projects
Verified Commit 20254062 authored by Clayton Craft's avatar Clayton Craft :speech_balloon:
Browse files

Add systemd unit files

Being part of the bluetooth.target means that this service (if
enabled) is started automatically every time the bluetooth service is
(re)started.

For WiFi, a NM override is preferred over a sep. systemd service
since bootmac, the driver, and NM seem to race each other. By having
an override for NM that runs bootmac, we can at least guarantee that
bootmac will always run before NM. Other networking daemons could have
similar overrides later.
parent 476c1125
No related branches found
No related tags found
No related merge requests found
[Unit]
Description=Set Bluetooth Mac Address
PartOf=bluetooth.target
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/bin/bootmac --bluetooth
[Install]
WantedBy=bluetooth.target
# Override for NetworkManager.service to run bootmac for WiFi
[Service]
ExecStartPre=/usr/bin/bootmac --wlan
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment