Skip to content

Commit 0a2610a

Browse files
authored
Update 30_bluetooth.sh
1 parent 9575ff6 commit 0a2610a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts.d/30_bluetooth.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ sed -i -e 's/#Class = .*/Class = 0x00010c/g' mnt/img_root/etc/bluetooth/main.con
1111
sed -i -e 's/#DiscoverableTimeout = 0/DiscoverableTimeout = 0/g' mnt/img_root/etc/bluetooth/main.conf
1212
sed -i -e 's/#JustWorksRepairing = never/JustWorksRepairing = always/g' mnt/img_root/etc/bluetooth/main.conf
1313
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
14+
echo -e "\n[Agent]\nDefaultAgent = true\nEnableSecurity = false" >> mnt/img_root/etc/bluetooth/main.conf
1515
cat mnt/img_root/etc/bluetooth/main.conf
1616

1717
sed -i -e 's#libexec/bluetooth/bluetoothd#sbin/bluetoothd#' mnt/img_root/lib/systemd/system/bluetooth.service
1818
cat mnt/img_root/lib/systemd/system/bluetooth.service
1919

2020
mkdir -p mnt/img_root/etc/systemd/system/bluetooth.service.d
21-
echo "[Service]\nExecStart=\nExecStart=/usr/sbin/bluetoothd --compat" > mnt/img_root/etc/systemd/system/bluetooth.service.d/override.conf
21+
echo -e "[Service]\nExecStart=\nExecStart=/usr/sbin/bluetoothd --compat" > mnt/img_root/etc/systemd/system/bluetooth.service.d/override.conf
2222
cat mnt/img_root/etc/systemd/system/bluetooth.service.d/override.conf

0 commit comments

Comments
 (0)