2022-10-01 19:53:20 +02:00
|
|
|
set timeout 60
|
|
|
|
|
2023-02-09 00:19:18 +01:00
|
|
|
spawn socat unix-connect:vm/console -
|
2022-10-01 19:53:20 +02:00
|
|
|
send "\r\n"
|
2023-03-10 19:41:43 +01:00
|
|
|
expect "#"
|
2022-10-01 19:53:20 +02:00
|
|
|
set FINISHED 0
|
|
|
|
set EXIT "1"
|
|
|
|
send "ls -l /run/uncaught-logs/current\r\n"
|
2023-03-10 19:41:43 +01:00
|
|
|
expect "#"
|
2023-12-10 19:35:14 +01:00
|
|
|
while { $FINISHED < 20 } {
|
|
|
|
send "date && grep AP-ENABLED /run/uncaught-logs/current || echo not\r\n"
|
2022-10-01 19:53:20 +02:00
|
|
|
|
|
|
|
expect {
|
|
|
|
"wlan0: AP-ENABLED" { set FINISHED 10; set EXIT 0; }
|
|
|
|
"not" { send_user "waiting ..." ; sleep 5 }
|
|
|
|
}
|
|
|
|
set FINISHED [ expr $FINISHED + 1 ]
|
|
|
|
}
|
|
|
|
|
|
|
|
exit $EXIT
|