We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0fa6690 commit 305a4bbCopy full SHA for 305a4bb
1 file changed
scripts/bluethoot_auto/bluethootconnect.sh
@@ -21,19 +21,9 @@ while read -r line; do
21
bluetoothctl remove "$mac"
22
bluetoothctl -t 8 scan on &
23
scan_pid=$!
24
- sleep 4
+ sleep 7
25
kill "$scan_pid" 2>/dev/null
26
27
- echo "⏳ Recherche de l'appareil..."
28
- # Attend jusqu'à ce que l'appareil soit détecté (max 20 s)
29
- for i in $(seq 1 20); do
30
- if bluetoothctl devices | grep -q "$mac"; then
31
- echo "✅ Appareil détecté ($mac)"
32
- break
33
- fi
34
- sleep 1
35
- done
36
-
37
bluetoothctl pair "$mac"
38
sleep 1
39
bluetoothctl trust "$mac"
0 commit comments