liminix

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

wait-for-reboot.expect (304B)


      1 set timeout 60
      2 
      3 spawn socat unix-connect:vm/console -
      4 
      5 expect {
      6        "s6-svscan exited" {  }
      7        timeout { exit 1 }
      8 }
      9 expect {
     10        "s6-linux-init" { send "\r\n" };
     11        "# " { send "\r\n" };
     12 }
     13 
     14 expect {
     15        "# " { send "echo \$PATH; md5sum /persist/activate; figlet Yes\r\n" };
     16 }
     17 
     18 expect "#"