liminix/tests/tftpboot/script.expect

22 lines
308 B
Text
Raw Normal View History

2023-12-19 13:12:12 +01:00
set timeout 30
2023-12-18 23:42:29 +01:00
spawn socat unix-connect:vm/console -
expect "stop autoboot"
send "\r"
expect "=>"
send "setenv ethact eth1\r"
set fh [open "result/boot.scr"]
while {[gets $fh line] >= 0} {
expect "=>"
send "$line\r"
}
close $fh
expect {
"s6-linux-init" { exit 0 }
timeout { exit 1 }
}