X-Git-Url: https://git.plutz.net/?p=rpi_small;a=blobdiff_plain;f=files%2Fetc%2Frc.local;h=05ff1c32836513b132b6e782b6faee44a91275a8;hp=b4663afe6a5947c9ccde280b0e2d1d6d2c681ba1;hb=4d85c9e0c9e7cade8939e8aace1836a9275ab452;hpb=3f540a1a9559fa1d96bafcf697248b4ce93da1dc diff --git a/files/etc/rc.local b/files/etc/rc.local index b4663af..05ff1c3 100755 --- a/files/etc/rc.local +++ b/files/etc/rc.local @@ -1,6 +1,19 @@ #!/bin/sh +modprobe w1-gpio pullup=1 +modprobe w1-therm + 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 & + +/srv/gummikraken/hatch.sh &