fix re-pairing for hardcoded devices
This commit is contained in:
2
bt
2
bt
@@ -251,7 +251,7 @@ case $choice in
|
|||||||
then
|
then
|
||||||
bluetoothctl disconnect "$dev_id"
|
bluetoothctl disconnect "$dev_id"
|
||||||
else
|
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"
|
bluetoothctl connect "$dev_id"
|
||||||
fi
|
fi
|
||||||
fi;;
|
fi;;
|
||||||
|
Reference in New Issue
Block a user