wait-until-ready.expect (434B)
1 set timeout 60 2 3 spawn socat unix-connect:vm/console - 4 expect { 5 "s6-linux-init" { } 6 timeout { exit 1 } 7 } 8 set timeout 30 9 expect { 10 "#" { send "PS1=\$(echo 'I1JFQURZIyA=' | base64 -d); stty -echo\n" } 11 timeout { exit 1 } 12 } 13 expect { 14 "#READY#" { send "s6-svwait -t 10000 -u /run/service/sshd; echo continue\n" } 15 timeout { exit 1 } 16 } 17 expect { 18 "#READY#" { } 19 timeout { exit 1 } 20 }