Skip to content
Snippets Groups Projects
  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
  2. Jan 23, 2025
    • Clayton Craft's avatar
      Support logging to stdout for running under systemd · f699dbac
      Clayton Craft authored
      If bootmac is running under systemd, sending output to `logger` usually
      means that the output is not sent to journald, and is lost. This can
      make debug more difficult. The var tested here is one that systemd sets
      when running a daemon (see `man systemd.exec`.)
      Verified
      f699dbac
    • Clayton Craft's avatar
      Add retry mechnism for setting BT and wlan MAC addr · cc0d219b
      Clayton Craft authored
      This replaces 3bfb183f with a retry mechanism, where the BT and wlan
      mac is (re)tried every 1 second for up to 5 seconds (configurable).
      
      If this doesn't play nicely with udev rules when using RUN, then
      BT_TIMEOUT and/or WLAN_TIMEOUT can be set in the env.
      Verified
      cc0d219b
    • Clayton Craft's avatar
      Add systemd unit file for bluetooth · 3f675505
      Clayton Craft authored
      Being part of the bluetooth.target means that this service (if
      enabled) is started automatically every time the bluetooth service is
      (re)started.
      
      WiFi was skipped since I've not found a reliable way to have
      bootmac configure the mac, it's racing with the driver, NM, and
      iwd/wpa_supplicant. The udev rule for wifi should just be dropped
      altogether when packaging bootmac for a systemd OS since it's unreliable
      and buggy.
      Verified
      3f675505
  3. Jan 15, 2025
  4. Jul 18, 2024
  5. Jan 23, 2024
  6. Jan 22, 2024
  7. Jan 13, 2024
    • sleirsgoevy's avatar
      Add "generate-only" mode · d6372391
      sleirsgoevy authored
      In this mode bootmac prints the derived MAC value for either Bluetooth
      or Wi-Fi, but does not actually configure the hardware.
      d6372391
  8. Jan 10, 2024
  9. Dec 27, 2023
  10. Sep 22, 2023
  11. Aug 16, 2022
  12. Aug 15, 2022
Loading