Enable WCNSS LE before Bluetooth discovery

Live btmgmt/btmon showed hci0 powered with le absent from current settings; BlueZ issued only BR/EDR Inquiry, so BLE peripherals were invisible. Add a narrow doas helper to run btmgmt -i hci0 le on before each interactive scan, make bluez-btmgmt explicit, add the doas rule, host guards and docs. With real peripherals in pairing mode the plugin UI reported 5 devices and retained BT KeyBoard / LE-QC Ultra entries.
This commit is contained in:
Luxferre committed 2026-11-10 16:15:50 +02:00
1 parent 77127c7844
commit e4358665f7
11 files changed
+58 -9

No files matched your search

+14
View File
@@ -1235,6 +1235,20 @@ done
if ! grep -q '^util-linux-misc$' "$PKGS_FILE"; then
fail "rootfs package set is missing util-linux-misc (script)"
fi
if ! grep -q '^bluez-btmgmt$' "$PKGS_FILE"; then
fail "rootfs package set is missing bluez-btmgmt (LE enable)"
fi
LE_HELPER="$BASE_DIR/overlay/rootfs/usr/bin/bananarchy-bt-le-enable.sh"
BT_DOAS="$BASE_DIR/overlay/rootfs/etc/doas.d/60-bananarchy-bluetooth.conf"
if [ ! -x "$LE_HELPER" ] || ! sh -n "$LE_HELPER" 2>/dev/null; then
fail "bananarchy-bt-le-enable.sh is missing or has bad syntax"
fi
if ! grep -qF 'btmgmt -i hci0 le on' "$LE_HELPER" || \
! grep -qF 'bananarchy-bt-le-enable.sh' "$BT_HELPER" || \
[ ! -f "$BT_DOAS" ] || \
! grep -qF 'bananarchy-bt-le-enable.sh' "$BT_DOAS"; then
fail "live Bluetooth scan is missing the LE enable helper or doas rule"
fi
if ! grep -qF 'usr/local/bin/bluetoothctl' \
"$BASE_DIR/scripts/apply-bananarchy-overlay.sh" || \
! grep -qF 'usr/bin/bananarchy-bt-scan.sh' \