Files
bananarchy/overlay/rootfs/usr/bin/bananarchy-bt-le-enable.sh
T

12 lines
347 B
Bash
Raw Normal View History

2026-11-10 16:15:50 +02:00
#!/bin/sh
# Enable the WCNSS controller's LE setting before BlueZ discovery.
# The kernel management socket requires root for this write.
set -eu
if [ "$(id -u)" -ne 0 ]; then
echo "Error: bananarchy-bt-le-enable.sh must run as root" >&2
exit 1
fi
/usr/bin/btmgmt -i hci0 class 2 3 >/dev/null 2>&1 || true
2026-11-10 16:15:50 +02:00
exec /usr/bin/btmgmt -i hci0 le on