From 11dce44e8a880c93699a4e7c4f3372313e77af46 Mon Sep 17 00:00:00 2001 From: Saumit Dinesan <79687674+justsaumit@users.noreply.github.com> Date: Fri, 28 Jan 2022 11:35:53 +0530 Subject: Update bts --- scripts/bts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'scripts/bts') 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;; -- cgit v1.2.3