X-Git-Url: http://git.plutz.net/?p=rpi_small;a=blobdiff_plain;f=files%2Fetc%2Frc.local;h=5e8e42cd43f2b6b465adab081c75be299dc79c3b;hp=b4663afe6a5947c9ccde280b0e2d1d6d2c681ba1;hb=de7f04d2adf2c29db2e1e81c557209256845533c;hpb=536acfb1ae1b727c4850027e68b45db90bff5f24 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 &