diff options
author | Saumit Dinesan <79687674+justsaumit@users.noreply.github.com> | 2022-01-28 11:35:53 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-28 11:35:53 +0530 |
commit | 11dce44e8a880c93699a4e7c4f3372313e77af46 (patch) | |
tree | 3788612dc642446f4c33a16201940f26ae1f7d07 /scripts/bts | |
parent | be0ae2c924a9bb2793e88c50df1f9c8c0264f3c4 (diff) |
Update bts
Diffstat (limited to 'scripts/bts')
-rw-r--r-- | scripts/bts | 6 |
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;; |