Skip to content

Commit 447db2e

Browse files
authored
Update 30_bluetooth.sh
1 parent a98e462 commit 447db2e

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

scripts.d/30_bluetooth.sh

+8-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,14 @@ cat mnt/img_root/usr/local/bin/bluetooth-server.py | grep ^class
88

99
echo "Switching bluetooth device class to 0x00010c - computer"
1010
sed -i -e 's/#Class = .*/Class = 0x00010c/g' mnt/img_root/etc/bluetooth/main.conf
11+
sed -i -e 's/#DiscoverableTimeout = 0/DiscoverableTimeout = 0/g' mnt/img_root/etc/bluetooth/main.conf
12+
sed -i -e 's/#JustWorksRepairing = never/JustWorksRepairing = always/g' mnt/img_root/etc/bluetooth/main.conf
13+
sed -i -e 's/#FastConnectable = false/FastConnectable = true/g' mnt/img_root/etc/bluetooth/main.conf
14+
echo "\n[Agent]\nDefaultAgent = true\nEnableSecurity = false" >> mnt/img_root/etc/bluetooth/main.conf
1115
cat mnt/img_root/etc/bluetooth/main.conf
1216

13-
sed -i -e 's#libexec/bluetooth/bluetoothd#sbin/bluetoothd --noplugin=sap#' mnt/img_root/lib/systemd/system/bluetooth.service
17+
sed -i -e 's#libexec/bluetooth/bluetoothd#sbin/bluetoothd#' mnt/img_root/lib/systemd/system/bluetooth.service
1418
cat mnt/img_root/lib/systemd/system/bluetooth.service
19+
20+
echo "[Service]\nExecStart=\nExecStart=/usr/sbin/bluetoothd --compat" > mnt/img_root/etc/systemd/system/bluetooth.service.d/override.conf
21+
cat mnt/img_root/etc/systemd/system/bluetooth.service.d/override.conf

0 commit comments

Comments
 (0)