aboutsummaryrefslogtreecommitdiff
path: root/board/bluetooth.sh
diff options
context:
space:
mode:
authorSébastien Dailly <sebastien@dailly.me>2025-06-18 12:06:04 +0200
committerSébastien Dailly <sebastien@dailly.me>2025-06-18 12:06:04 +0200
commit0640b403f2dc33fca3b1ca121012b98c2420ef24 (patch)
treead7412b9bf9c24420cab47143004e5891992837f /board/bluetooth.sh
parent8e654849a088d7e2843233e90a0994829de638d0 (diff)
Moved the systemd configuration in it’s own file
Diffstat (limited to 'board/bluetooth.sh')
-rw-r--r--board/bluetooth.sh21
1 files changed, 0 insertions, 21 deletions
diff --git a/board/bluetooth.sh b/board/bluetooth.sh
index c1af995..b37d6da 100644
--- a/board/bluetooth.sh
+++ b/board/bluetooth.sh
@@ -19,27 +19,6 @@ __EOF__
# Accept any code from any connexion
echo "* *" > "${TARGET_DIR}/etc/bluetooth/pins"
-# Run the Bluetooth agent
-cat << __EOF__ > "${TARGET_DIR}/etc/systemd/system/bt-agent.service"
-[Unit]
-Description=Bluetooth Agent
-After=bluetooth.service
-Requires=bluetooth.service
-
-[Service]
-Type=simple
-ExecStartPre=bt-adapter --set Discoverable 1
-#ExecStart=bt-agent -c NoInputNoOutput
-ExecStart=bt-agent -p /etc/bluetooth/pins
-## Restart the service each 60s
-#WatchdogSec=60
-#RestartSec=60
-#Restart=always
-
-[Install]
-WantedBy=multi-user.target
-__EOF__
-
enable_service "bt-agent.service"
create_missing_dir "/etc/dbus-1/system.d/"