Skip to content

Commit eb29b58

Browse files
committed
[blu-control.sh] Fix scan not working
bluetoothctl in Trixie uses "> " as the prompt instead of "# " which was used in Bookworm
1 parent 79c51ed commit eb29b58

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

www/util/blu-control.sh

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -59,22 +59,22 @@ log_user 0
5959
set timeout -1
6060
match_max 100000
6161
spawn bluetoothctl
62-
expect "*# "
62+
expect "*> "
6363
send "menu scan\r"
64-
expect "*# "
64+
expect "*> "
6565
send "clear\r"
66-
expect "*# "
66+
expect "*> "
6767
send "transport bredr\r"
68-
expect "*# "
68+
expect "*> "
6969
send "back\r"
70-
expect "*# "
70+
expect "*> "
7171
send "scan on\r"
7272
expect "Discovery started\r"
73-
expect "*# "
73+
expect "*> "
7474
sleep $SCAN_DURATION
7575
send "scan off\r"
7676
expect "Discovery stopped\r"
77-
expect "*# "
77+
expect "*> "
7878
send "quit\r"
7979
expect eof
8080
EOF
@@ -90,20 +90,20 @@ log_user 0
9090
set timeout -1
9191
match_max 100000
9292
spawn bluetoothctl
93-
expect "*# "
93+
expect "*> "
9494
send "menu scan\r"
95-
expect "*# "
95+
expect "*> "
9696
send "clear\r"
97-
expect "*# "
97+
expect "*> "
9898
send "back\r"
99-
expect "*# "
99+
expect "*> "
100100
send "scan on\r"
101101
expect "Discovery started\r"
102-
expect "*# "
102+
expect "*> "
103103
sleep $SCAN_DURATION
104104
send "scan off\r"
105105
expect "Discovery stopped\r"
106-
expect "*# "
106+
expect "*> "
107107
send "quit\r"
108108
expect eof
109109
EOF
@@ -215,10 +215,10 @@ log_user 0
215215
set timeout -1
216216
match_max 100000
217217
spawn bluetoothctl
218-
expect "*# "
218+
expect "*> "
219219
send "pair $DEVICE\r"
220220
expect "Attempting to pair with $DEVICE\r"
221-
expect "*# "
221+
expect "*> "
222222
sleep $WAIT_FOR_PAIR
223223
send "quit\r"
224224
expect eof
@@ -235,10 +235,10 @@ log_user 0
235235
set timeout -1
236236
match_max 100000
237237
spawn bluetoothctl
238-
expect "*# "
238+
expect "*> "
239239
send "connect $DEVICE\r"
240240
expect "Attempting to connect to $DEVICE\r"
241-
expect "*# "
241+
expect "*> "
242242
sleep $WAIT_FOR_CONNECT
243243
send "quit\r"
244244
expect eof

0 commit comments

Comments
 (0)