summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/bts6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/bts b/scripts/bts
index 6aa9dfb..0f5955f 100644
--- a/scripts/bts
+++ b/scripts/bts
@@ -1,9 +1,9 @@
-status=$(systemctl status bluetooth | grep active | cut -d " " -f 7)
+status=$(systemctl status bluetooth | grep Active | cut -d " " -f 7)
case $status in
- "active")
+ "active")
bluetoothctl power on
bluetoothctl connect A1:B3:EC:B1:53:60 ;;
- "inactive")
+ "inactive" | "failed")
sudo systemctl start bluetooth
bluetoothctl power on
bluetoothctl connect A1:B3:EC:B1:53:60;;