Skip to content

Commit

Permalink
Update 30_bluetooth.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
dogi authored Feb 10, 2025
1 parent 9575ff6 commit 0a2610a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts.d/30_bluetooth.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ sed -i -e 's/#Class = .*/Class = 0x00010c/g' mnt/img_root/etc/bluetooth/main.con
sed -i -e 's/#DiscoverableTimeout = 0/DiscoverableTimeout = 0/g' mnt/img_root/etc/bluetooth/main.conf
sed -i -e 's/#JustWorksRepairing = never/JustWorksRepairing = always/g' mnt/img_root/etc/bluetooth/main.conf
sed -i -e 's/#FastConnectable = false/FastConnectable = true/g' mnt/img_root/etc/bluetooth/main.conf
echo "\n[Agent]\nDefaultAgent = true\nEnableSecurity = false" >> mnt/img_root/etc/bluetooth/main.conf
echo -e "\n[Agent]\nDefaultAgent = true\nEnableSecurity = false" >> mnt/img_root/etc/bluetooth/main.conf
cat mnt/img_root/etc/bluetooth/main.conf

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

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

0 comments on commit 0a2610a

Please sign in to comment.