Skip to content
Snippets Groups Projects
Clayton Craft's avatar
Clayton Craft authored
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)
52f0ab91
History

bootmac

Bootmac configures the MAC addresses of WLAN and Bluetooth interfaces at boot. Bootmac can be invoked in various ways at boot, but currently only udev rules are tested. Bootmac generates MAC addresses from the serialno provided by Android bootloaders through /proc/cmdline or from /etc/machine-id with prefix 02:00.

License

GPLv3

Copyright (c) Dylan Van Assche (2022)