aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Kavanagh <rak@rak.ac>2023-01-03 12:18:15 -0500
committerRyan Kavanagh <rak@rak.ac>2023-01-03 12:18:15 -0500
commit6f2d8aa231ed8223ca6a951d8ade778fc2da1102 (patch)
tree84ff5fab36b1a29b759fb059f1ca15212f65b65c
parentnew he tunnel (diff)
bluetooth bug
-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