aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2020-07-27 07:35:10 +0200
committerSven Gothel <[email protected]>2020-07-27 07:35:10 +0200
commit10e0468045ca4ab21f445b414589084379d98704 (patch)
tree1c1080c18c10f64e08261e958bf4f00ed0f2f8ba
parent345772f9b5d51e04f2fd4409d8c90bd6f0dc195c (diff)
Add convenient GNU/Linux start/stop scripts for bluetoothdv2.1.18
-rwxr-xr-xscripts/start.bluetoothd.sh7
-rwxr-xr-xscripts/stop.bluetoothd.sh7
2 files changed, 14 insertions, 0 deletions
diff --git a/scripts/start.bluetoothd.sh b/scripts/start.bluetoothd.sh
new file mode 100755
index 00000000..ba0d2a10
--- /dev/null
+++ b/scripts/start.bluetoothd.sh
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+systemctl stop bluetooth
+systemctl unmask bluetooth
+systemctl start bluetooth
+systemctl status bluetooth
+hciconfig hci0 reset
diff --git a/scripts/stop.bluetoothd.sh b/scripts/stop.bluetoothd.sh
new file mode 100755
index 00000000..dde9b681
--- /dev/null
+++ b/scripts/stop.bluetoothd.sh
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+systemctl stop bluetooth
+systemctl mask bluetooth
+systemctl stop bluetooth
+systemctl status bluetooth
+hciconfig hci0 reset