diff options
-rw-r--r-- | board/bluetooth.sh | 22 | ||||
-rwxr-xr-x | build.sh | 2 |
2 files changed, 12 insertions, 12 deletions
diff --git a/board/bluetooth.sh b/board/bluetooth.sh index e49a345..4cc2093 100644 --- a/board/bluetooth.sh +++ b/board/bluetooth.sh @@ -26,22 +26,22 @@ Requires=bluetooth.service [Service] Type=simple ExecStartPre=bt-adapter --set Discoverable 1 -ExecStart=bt-agent -c NoInputNoOutput +# see https://github.com/RPi-Distro/repo/issues/291 +#ExecStart=bt-agent -c NoInputNoOutput +ExecStart=/bin/sh -c '/usr/bin/yes | /usr/bin/bt-agent --capability=DisplayOnly' +# Restart the service each 10s +WatchdogSec=10 RestartSec=5 Restart=always -KillSignal=SIGUSR1 [Install] WantedBy=bluetooth.target __EOF__ -# The same for the bluetooth, as bluetoothd keep a track for each paired device +## The same for the bluetooth, as bluetoothd keep a track for each paired device create_missing_dir "/var/lib/bluetooth/" -if ! grep -qE '/var/lib/bluetooth' "${TARGET_DIR}/etc/fstab"; then - cat << __EOF__ >> "${TARGET_DIR}/etc/fstab" -tmpfs /var/lib/bluetooth tmpfs rw 0 0 -__EOF__ -fi - - - +#if ! grep -qE '/var/lib/bluetooth' "${TARGET_DIR}/etc/fstab"; then +# cat << __EOF__ >> "${TARGET_DIR}/etc/fstab" +#tmpfs /var/lib/bluetooth tmpfs rw 0 0 +#__EOF__ +#fi @@ -7,7 +7,7 @@ usage() { echo " - raspberrypi3" } -test -z ${BUILDROOT_DIR} && BUILDROOT_DIR="../buildroot-2022.02.1" +test -z ${BUILDROOT_DIR} && BUILDROOT_DIR="../buildroot-2022.02.5" if [ ! -d ${BUILDROOT_DIR} ]; then usage |