1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
|
#!/usr/local/bin/expect
set timeout 4000
spawn ./gxemul -e3max -q -d nbsd_pmax.img -d bc:../../emul/mips/pmaxcd-5.1.1.iso
expect "Terminal type"
send "vt100\r"
expect " in English"
send "\r"
expect "a: Install NetBSD to"
send "\r"
expect "b: Yes"
send "b\r"
expect "Hit enter to continue"
send "\r"
expect "a: Full installation"
send "\r"
expect "a: Set sizes of NetBSD partitions"
send "\r"
expect "Accept partition sizes"
send " \r"
expect "x: Partition sizes ok"
send "\r"
expect "Please enter a name for"
send "\r"
expect "b: Yes"
send "b\r"
expect "a: Progress bar"
send "\r"
expect "a: CD-ROM"
send "\r"
expect "x: Continue"
send "x\r"
expect "Hit enter to continue"
send "\r"
expect "Hit enter to continue"
send "\r"
expect "Press 'x' followed by RETURN to quit"
send "x\r"
expect "a: DES"
send "\r"
expect "b: No"
send "b\r"
expect "a: /bin/sh"
send "\r"
expect "Hit enter to continue"
send "\r"
expect "d: Reboot the computer"
send "d\r"
close
|