#
# $Id: generate,v 1.3 2009-03-16 14:36:13 vrsieh Exp $
#
# Copyright (C) 2004-2009 FAUmachine Team <info@faumachine.org>.
# This program is free software. You can redistribute it and/or modify it
# under the terms of the GNU General Public License, either version 2 of
# the License, or (at your option) any later version. See COPYING.
#
# Insert Minix3-1.2a-CD
#
cdrom_insert	Minix3-1.2a-CD
#
# Power-on node.
#
power_on
#
# Wait for "Regular MINIX 3".
# Type "1".
#
wait_asc	Regular MINIX 3					1min
type		"1"
#
# Wait for "minix login:"
# Type "root".
#
wait_asc	minix login:  					1min
type		"root\0d"
#
# Wait for prompt.
# Type "setup".
#
wait_asc	#  						1min
type		"setup\0d"
#
# Wait for "Welcome to the MINIX 3 setup script.".
# Type <Return>.
#
wait_asc	Welcome to the MINIX 3 setup script.		1min
type		"\0d"
#
# Wait for "Select keyboard type".
# Use preselected "us-std".
# Type <Return>.
#
wait_asc	Select keyboard type				1min
type		"\0d"
#
# Wait for "Select your Ethernet chip".
# Use preselected "0" (No Ethnernet card).
# Type <Return>.
#
wait_asc	Select your Ethernet chip			1min
type		"\0d"
#
# Wait for "Select minimal or full distribution".
# Type "F"<Return> to select full install.
#
wait_asc	Select minimal or full distribution		1min
type		"F\0d"
#
# Wait for "Create or select a partition for MINIX 3".
# Type <Return> to select automatic mode.
#
wait_asc	Create or select a partition for MINIX 3	1min
type		"\0d"
#
# Wait for "Select a disk to install MINIX 3".
# Type <Return> to select suggested "[0]".
#
wait_asc	Select a disk to install MINIX 3		1min
type		"\0d"
#
# Wait for "Select a disk region".
# Type <Return> to select suggested "[0]".
#
wait_asc	Select a disk region				1min
type		"\0d"
#
# Wait for "Confirm your choices".
# Type "yes".
#
wait_asc	Confirm your choices				1min
type		"yes\0d"
#
# Wait for "Select the size of /home".
# Type <Return> to select suggested "[11]".
#
wait_asc	Select the size of /home			1min
type		"\0d"
#
# Wait for "11 MB Ok? [Y]".
# Type <Return> to accept.
#
wait_asc	11 MB Ok? [Y]					1min
type		"\0d"
#
# Wait for "Select a block size".
# Type <Return> to select suggested "4".
#
wait_asc	Select a block size				1min
wait_asc	Block size in kilobytes? [4]			5sec
type		"\0d"
#
# Wait for "Wait for bad block detection".
# Just wait...
#
wait_asc	Wait for bad block detection			1min
wait_asc	Scanning /dev/c0d0p0s0 for bad blocks:		1min
wait_asc	Scanning /dev/c0d0p0s1 for bad blocks:		1min
wait_asc	Scanning /dev/c0d0p0s2 for bad blocks:		1min
#
# Wait for "Wait for files to be copied".
# Just wait...
#
wait_asc	Wait for files to be copied			1min
#
# Wait for "Please type 'shutdown' to exit MINIX 3 and enter the boot monitor".
# Type "shutdown" <Return>.
#
wait_asc	Please type 'shutdown' to exit MINIX 3		5min
type		"shutdown\0d"
#
# Wait for "MINIX will now be shut down ...", "fd0>".
# Type "boot d0p0" <Return>.
#
wait_asc	MINIX will now be shut down ...			1min
wait_asc	fd0>						5sec
type		"boot d0p0\0d"
#
# Wait for "Minix  Release 3 Version 1.2a  (console)", "10.0.0.1 login:".
# Type "root" <Return>.
#
wait_asc	Minix  Release 3 Version 1.2a  (console)	1min
wait_asc	10.0.0.1 login:					5sec
type		"root\0d"
#
# Wait for shell prompt.
# Type "shutdown" <Return>.
#
wait_asc	# 						1min
type		"shutdown\0d"
#
# Wait for "MINIX will now be shut down ...", "d0p0s0>".
# Switch off node.
#
wait_asc	MINIX will now be shut down ...			1min
wait_asc	d0p0s0>						5sec
power_off
