#!/bin/sh
# A stable address for a Bluetooth controller that has none (bt-address),
# once hci0 exists; it waits for WLAN itself.  A service, not a udev RUN:
# run from udev, its wait for wlan0 held up the events that load the WLAN
# modules, and both waited 30 s (2026-11-08).  Its messages go to the
# kernel log; then the service idles, so runsv does not run it again.
[ -e /sys/class/bluetooth/hci0 ] || exit 1
/usr/libexec/makronix/bt-address hci0
exec pause
