aboutsummaryrefslogtreecommitdiff
path: root/bin/executable_do_blue.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bin/executable_do_blue.sh')
-rwxr-xr-xbin/executable_do_blue.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/executable_do_blue.sh b/bin/executable_do_blue.sh
index 6958aba..b908d14 100755
--- a/bin/executable_do_blue.sh
+++ b/bin/executable_do_blue.sh
@@ -1,3 +1,4 @@
#!/bin/sh
-pacmd load-module module-bluez5-discover
+pacmd list-modules module-bluez5-discover | grep -q module-bluez5-discover || \
+ pacmd load-module module-bluez5-discover
echo "connect CD:0D:69:69:9A:1B" | bluetoothctl