From ae1e6365145c9efe006f0dfd97f65253a02b510a Mon Sep 17 00:00:00 2001 From: Alexander Bocken Date: Tue, 29 Jun 2021 13:21:22 +0200 Subject: [PATCH] fix re-pairing for hardcoded devices --- bt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bt b/bt index 4230495..0473ef8 100755 --- a/bt +++ b/bt @@ -251,7 +251,7 @@ case $choice in then bluetoothctl disconnect "$dev_id" else - bluetoothctl devices | grep -q "$dev_id" || bluetoothctl pair "$dev_id" + bluetoothctl paired-devices | grep -q "$dev_id" || bluetoothctl pair "$dev_id" bluetoothctl connect "$dev_id" fi fi;;