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

add systemd unit file

This can be used to start bootmac reliably (in my limited testing), the
1 second delay seems to be enough for the hw to be ready for setting the
mac addr. There are probably better ways to do this.

Being part of the bluetooth.target means that this service (if
enabled) is started automatically every time the bluetooth service is
(re)started. It's functionally the same as starting bootmac via udev,
except we can easily add delays in this unit file (while delaying udev
rule execution is... dice-y)
parent 476c1125
No related branches found
No related tags found
No related merge requests found
Pipeline #213690 passed
[Unit]
Description=Set Mac Address
PartOf=bluetooth.target
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStartPre=/bin/sleep 1
ExecStart=/usr/bin/bootmac --bluetooth
[Install]
WantedBy=bluetooth.target
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