#
# Copyright (C) 2017 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 FreeDOS-1.1-CD
#
cdrom_insert	FreeDOS-1.1-CD
#
# Power-on machine.
#
power_on
#
# Wait for "Welcome to FreeDOS 1.1".
# Wait for "Install to harddisk".
# Wait for "Boot from system harddisk".
# Wait for "Boot from diskette".
# Select "Create drive C:".
# Type "c".
#
wait_asc	Welcome to FreeDOS 1.1				1min
wait_asc	Install to harddisk				10sec
wait_asc	Create drive C:					10sec
wait_asc	Boot from system harddisk			10sec
wait_asc	Boot from diskette				10sec
# wait_asc	...
type		"c"
#
# Wait for "Free FDISK is capable of using large..."
# Wait for "Do you want to use large disk (FAT32) support (Y/N).[Y]?".
# Use pre-selected "Y".
# Type <Return>.
#
wait_asc	Free FDISK is capable of using large		1min
wait_asc	Do you want to use large disk (FAT32) support (Y/N).[Y]?	1min
type		"\0d"
#
# Wait for "Free FDISK     Version 1.2.1".
# Wait for "Current fixed disk drive: 1".
# Wait for "Choose one of the following:".
# Wait for "1.  Create DOS partition or Logical DOS Drive".
# Wait for "2.  Set Active partition".
# Wait for "3.  Delete partition or Logical DOS Drive".
# Wait for "4.  Display partition information".
# Wait for "Enter choice:  [1]".
# Use pre-selected "1".
# Type <Return>.
#
wait_asc	Free FDISK     Version 1.2.1			1min
wait_asc	Current fixed disk drive: 1			10sec
wait_asc	Choose one of the following:			10sec
wait_asc	1.  Create DOS partition or Logical DOS Drive	10sec
wait_asc	2.  Set Active partition			10sec
wait_asc	3.  Delete partition or Logical DOS Drive	10sec
wait_asc	4.  Display partition information		10sec
wait_asc	Enter choice:  [1]				10sec
type		"\0d"
#
# Wait for "Create DOS Partition or Logical DOS Drive".
# Wait for "Current fixed disk drive: 1".
# Wait for "Choose one of the following:".
# Wait for "1.  Create Primary DOS Partition".
# Wait for "2.  Create Extended DOS Partition".
# Wait for "3.  Create Logical DOS Drive(s) in the Extended DOS Partition".
# Wait for "Enter choice:  [ ]".
# Type "1".
# Type <Return>.
#
# wait_asc	Create DOS Partition or Logical DOS Drive	1min
# wait_asc	Current fixed disk drive: 1			10sec
# wait_asc	Choose one of the following:			10sec
wait_asc	1.  Create Primary DOS Partition		1min
wait_asc	2.  Create Extended DOS Partition		10sec
wait_asc	3.  Create Logical DOS Drive(s) in the Extended DOS Partition	10sec
wait_asc	Enter choice:  [ ]				10sec
type		"1\0d"
#
# Wait for "Create Primary DOS Partition".
# Wait for "Current fixed disk drive: 1".
# Wait for "Do you wish to use the maximum available...".
# Wait for "......? [Y]".
# Wait for "Press Esc to return to FDISK options".
# Use pre-selected "Y".
# Type <Return>.
#
# wait_asc	Create Primary DOS Partition			1min
# wait_asc	Current fixed disk drive: 1			10sec
wait_asc	Do you wish to use the maximum available	1min
wait_asc	...? [Y]					10sec
wait_asc	Press Esc to return to FDISK options		10sec
type		"\0d"
#
# Wait for "Create Primary DOS Partition".
# Wait for "Current fixed disk drive: 1".
# Wait for "Partition  Status   Type    Volume Label  Mbytes  System  Usage".
# Wait for " C: 1         A    PRI DOS                  256  FAT16     100%".
# Wait for "Total disk space is    256 Mbytes (1 Mbyte = 1048576 bytes)".
# Wait for "Primary DOS Partition created".
# Wait for "Press Esc to continue".
# Type <ESC>.
#
# wait_asc	Create Primary DOS Partition			1min
# wait_asc	Current fixed disk drive: 1			10sec
wait_asc	Partition  Status   Type    Volume Label  Mbytes   System   Usage	1min
wait_asc	 C: 1         A    PRI DOS                  256   FAT16      100%	10sec
wait_asc	Total disk space is    256 Mbytes (1 Mbyte = 1048576 bytes)		10sec
wait_asc	Primary DOS Partition created						10sec
wait_asc	Press Esc to continue							10sec
type		"\0f"
#
# Wait for "FDISK Options".
# Wait for "Current fixed disk drive: 1".
# Wait for "Choose one of the following:".
# Wait for "1.  Create DOS partition or Logical DOS Drive".
# Wait for "2.  Set Active partition".
# Wait for "3.  Delete partition or Logical DOS Drive".
# Wait for "4.  Display partition information".
# Wait for "Enter choice:  [1]".
# Wait for "Press Esc to exit FDISK".
# Type <ESC>.
#
wait_asc	FDISK Options					1min
wait_asc	Current fixed disk drive: 1			10sec
wait_asc	Choose one of the following:			10sec
wait_asc	1.  Create DOS partition or Logical DOS Drive	10sec
wait_asc	2.  Set Active partition			10sec
wait_asc	3.  Delete partition or Logical DOS Drive	10sec
wait_asc	4.  Display partition information		10sec
wait_asc	Enter choice:  [1]				10sec
wait_asc	Press Esc to exit FDISK				10sec
type		"\0f"
#
# Wait for "System will now restart".
# Wait for "Press any key when ready . . .".
# Type <Return>.
#
wait_asc	System will now restart		1min
wait_asc	Press any key when ready . . .	10sec
type		"\0d"
#
# Wait for "Welcome to FreeDOS 1.1".
# Wait for "Install to harddisk".
# Wait for "Boot from system harddisk".
# Wait for "Boot from diskette".
# Select "Install to harddisk".
# Type "i".
#
wait_asc	Welcome to FreeDOS 1.1				1min
wait_asc	Install to harddisk				10sec
wait_asc	Create drive C:					10sec
wait_asc	Boot from system harddisk			10sec
wait_asc	Boot from diskette				10sec
# wait_asc	...
type		"i"
#
# Wait for "FreeDOS 1.1 can be installed to the following destination drive:".
# Wait for "Current fixed disk drive: 1".
# Wait for "..."
# Wait for "Press 1 to start installing the FreeDOS 1.1 operating system".
# Wait for "from CD-ROM drive E: to drive C:".
# Wait for "Or select any of the below choices:".
# Wait for "..."
# Type "1".
#
wait_asc	FreeDOS 1.1 can be installed to the following destination drive:	1min
wait_asc	Current fixed disk drive: 1						10sec
# wait_asc	...
wait_asc	Press 1 to start installing the FreeDOS 1.1 operating system		10sec
wait_asc	from CD-ROM drive E: to drive C:					10sec
wait_asc	Or select any of the below choices:					10sec
# wait_asc	...
type		"1"
#
# Wait for "Please select your language and keyboard layout".
# Wait for "1)  English    (US)".
# Wait for "2)  Deutsch    (German)".
# Wait for "3)  Francais   (French)".
# Wait for "4)  Polski     (Polish)".
# Wait for "5)  Nederlands (Dutch)".
# ...
# Use pre-selected "1) English".
# Type <Return>.
#
wait_asc	Please select your language and keyboard layout	1min
wait_asc	1)  English    (US)				10sec
wait_asc	2)  Deutsch    (German)				10sec
wait_asc	3)  Francais   (French)				10sec
wait_asc	4)  Polski     (Polish)				10sec
wait_asc	5)  Nederlands (Dutch)				10sec
# wait_asc	...
type		"\0d"
#
# Wait for "FreeDOS SETUP has determined that you need to format".
# Wait for ...
# Wait for "Are you sure you want to do this?".
# Wait for "Yes".
# Wait for "No (return to command prompt)".
# Use pre-selected "Yes".
# Type <Return>.
#
wait_asc	FreeDOS SETUP has determined that you need to format	1min
# wait_asc	...
wait_asc	Are you sure you want to do this?			10sec
wait_asc	Yes							10sec
wait_asc	No (return to command prompt)				10sec
type		"\0d"
#
# Wait for "WARNING: ALL DATA ON NON-REMOVALBE DISK".
# Wait for "DRIVE C: WILL BE LOST! PLEASE CONFIRM!".
# Wait for "Proceed with format (YES/NO)?".
# Type
#
wait_asc	WARNING: ALL DATA ON NON-REMOVABLE DISK		1min
wait_asc	DRIVE C: WILL BE LOST! PLEASE CONFIRM!		10sec
wait_asc	Proceed with format (YES/NO)?			10sec
type		"YES\0d"
#
# Wait for "FreeDOS 1.1 Final Distribution".
# Wait for "1) Continue with FreeDOS installation".
# Wait for "2) View the install text for using this CD-ROM (Esc to exit)".
# ...
# Use pre-selected "1) Continue...".
# Type <Return>.
#
wait_asc	FreeDOS 1.1 Final Distribution			1min
wait_asc	1) Continue with FreeDOS installation		10sec
wait_asc	2) View the install text for using this CD-ROM (Esc to exit)	10sec
# ...
type		"\0d"
#
# Wait for "FreeDOS 1.1 Final Distribution".
# Wait for "1) Start installation of FreeDOS 1.1 Final".
# Wait for "2) Change installation mode".
# Wait for "3) Reset language to English".
# Wait for "4) Return to previous menu".
# Use pre-selected "1) Start...".
# Type <Return>.
#
# wait_asc	FreeDOS 1.1 Final Distribution			1min
wait_asc	1) Start installation of FreeDOS 1.1 Final	1min
wait_asc	2) Change installation mode			10sec
wait_asc	3) Reset language to English			10sec
wait_asc	Q) Return to previous menu			10sec
type		"\0d"
#
# FIXME
#
wait_asc	FIXME						1min
