Skip to content
Snippets Groups Projects

Add separate udev rules for systemd installs, rework service

Open Arnaud Ferraris requested to merge a-wai/bootmac:master into master
  1. Feb 15, 2025
    • Arnaud Ferraris's avatar
      Add meson.build · 6c6d8451
      Arnaud Ferraris authored
      This can ease installation, while providing enough flexibility to cover
      both installation use-cases:
      * systemd installs, using the service file and specific udev rules
      * generics installs, using the basic udev rules only
      6c6d8451
    • Arnaud Ferraris's avatar
      Add separate udev rules for systemd installs, rework service · 9ab9ff59
      Arnaud Ferraris authored
      On systemd-based systemd, running `bootmac` directly from the `udev`
      rules doesn't work very well for bluetooth. As previously noted, using
      a systemd service instead fixes those problems, although it requires
      finding an appropriate "reverse dependency" (such as e.g.
      `bluetooth.target`).
      
      Using unit activation from `udev` makes it easier, at it will be
      triggered once the interface exists. Moreover, in order to avoid
      creating service files for both wlan and bluetooth, we can make it a
      template and use the instance parameter as bootmac's main command-line
      argument.
      9ab9ff59
Loading