aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2021-10-29 05:56:07 +0200
committerSven Gothel <[email protected]>2021-10-29 05:56:07 +0200
commitcba8941c88092921ed0771a20c756803e22a016c (patch)
tree9be238a6bbaf4c2b521563d3b2b8e5c972a6f73e /scripts
parent404a3640f6cc286e8022bf543eaa6f6d40961808 (diff)
Adding blues-btreset.sh: Reset and 'disable' one or more adapter ..
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/bluez-btreset.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/scripts/bluez-btreset.sh b/scripts/bluez-btreset.sh
new file mode 100755
index 00000000..aa85cfe2
--- /dev/null
+++ b/scripts/bluez-btreset.sh
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+reset_dev() {
+ dev=$1
+ echo "Reset ${dev}"
+ sudo hciconfig ${dev} reset
+ sudo hciconfig ${dev} down
+}
+
+echo "Usage: ${0} hciA [hciB [hciC [...]]]"
+
+for i in $* ; do
+ reset_dev $i
+done