11 lines
289 B
Bash
11 lines
289 B
Bash
#!/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
|
||
|
|
|
||
|
|
exec /usr/bin/btmgmt -i hci0 le on
|