From de7f04d2adf2c29db2e1e81c557209256845533c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Thu, 1 Nov 2018 16:50:56 +0100 Subject: [PATCH] autotrust all bluetooth devices --- files/etc/rc.local | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/files/etc/rc.local b/files/etc/rc.local index b4663af..5e8e42c 100755 --- a/files/etc/rc.local +++ b/files/etc/rc.local @@ -4,3 +4,11 @@ bt-network -s nap br0 & hciconfig hci0 up hciconfig hci0 sspmode 1 hciconfig hci0 piscan + +while sleep 5; do + bt-device -l \ + | grep -oE '[0-9A-F:]{17}' \ + | while read mac; do + bt-device --set "$mac" Trusted 1 + done +done & -- 2.39.2