summaryrefslogtreecommitdiff
path: root/scripts/mobile/bt-stack-down.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/mobile/bt-stack-down.sh')
-rwxr-xr-xscripts/mobile/bt-stack-down.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/scripts/mobile/bt-stack-down.sh b/scripts/mobile/bt-stack-down.sh
new file mode 100755
index 0000000..322241a
--- /dev/null
+++ b/scripts/mobile/bt-stack-down.sh
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+#
+# Script for stopping Bluetooth stack
+#
+
+# Remove BT device
+/usr/etc/bluetooth/bt-dev-end.sh
+
+# Kill BlueZ bluetooth stack
+killall obexd obex-client
+killall bt-syspopup
+killall bluetooth-share
+killall bluetooth-pb-agent
+killall bluetooth-map-agent
+killall bluetooth-hfp-agent
+killall bluetoothd
+
+# result
+exit 0