#
# 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"
#
wait_asc	Version 3.7.8						1min
wait_asc	Copyright (C) 1998 - 2001 Jim Hall <jhall@freedos.org>	10sec
wait_asc	This program is free software; you can redistribute	10sec
# wait_asc	...
wait_asc	Press any key to continue				10sec
type		"\0d"
#
wait_asc	Ready to install the FreeDOS software?			1min
# wait_asc	...
wait_asc	fine once you boot from the hard disk, though.		10sec
wait_asc	Press any key to continue				10sec
type		"\0d"
#
wait_asc	Where are the install files?				1min
wait_asc	E:\FREEDOS\PACKAGES					10sec
wait_asc	Where will files be installed?				10sec
wait_asc	C:\FDOS							10sec
type		"\0d"
#
wait_asc	Are above directories correct?				1min
wait_asc	Yes							10sec
wait_asc	No							10sec
type		"\0d"
#
wait_asc	<X> base						1min
wait_asc		[ ] boot					10sec
wait_asc			[ ] gui					10sec
wait_asc				[ ] net				10sec
wait_asc					[X] util		10sec
wait_asc	[DONE]							10sec
type		"\1f"
#
wait_asc	[X] base						1min
wait_asc		[ ] boot					10sec
wait_asc			[ ] gui					10sec
wait_asc				[ ] net				10sec
wait_asc					[X] util		10sec
wait_asc	<DONE>							10sec
type		"\0d"
#
wait_asc	Proceed with installation?				1min
wait_asc	Yes							10sec
wait_asc	No							10sec
type		"\0d"
#
wait_asc	<X> kernelx  [X] commandx [X] fdiskx   [X] formatx	1min
# wait_asc	...
wait_asc	[X] usbdosx  [X] xcopyx   [X] xmgrx			10sec
wait_asc	[DONE]							10sec
type		"\1f\1f\1f\1f\1f\1f\1f"
type		"\1f\1f\1f\1f\1f\1f\1f"
#
wait_asc	[X] kernelx  [X] commandx [X] fdiskx   [X] formatx	1min
# wait_asc	...
wait_asc	[X] usbdosx  [X] xcopyx   [X] xmgrx			10sec
wait_asc	<DONE>							10sec
type		"\0d"
#
wait_asc	Proceed with installation?				1min
wait_asc	Yes							10sec
wait_asc	No							10sec
type		"\0d"
#
wait_asc	Package:						1min
#
wait_asc	Done installing this disk series			15min
wait_asc	If you are installing other disk series, please insert	10sec
wait_asc	disk #1 of the next series in the drive now		10sec
wait_asc	Press any key to continue				10sec
type		"\0d"
#
wait_asc	<X> SYSLNXX  [X] FDSHELLX [X] WATTCPX  [X] WGETX	1min
# wait_asc	...
wait_asc	[X] VMSMNTX						10sec
wait_asc	[DONE]							10sec
type		"\1f\1f\1f"
#
wait_asc	[X] SYSLNXX  [X] FDSHELLX [X] WATTCPX  [X] WGETX	1min
# wait_asc	...
wait_asc	[X] VMSMNTX						10sec
wait_asc	<DONE>							10sec
type		"\0d"
#
wait_asc	Proceed with installation?				1min
wait_asc	Yes							10sec
wait_asc	No							10sec
type		"\0d"
#
wait_asc	Package:						1min
#
wait_asc	Done installing this disk series			5min
wait_asc	If you are installing other disk series, please insert	10sec
wait_asc	disk #1 of the next series in the drive now		10sec
wait_asc	Press any key to continue				10sec
type		"\0d"
#
wait_asc	FreeDOS 1.1 Final cdrom distribution			1min
wait_asc	Performing post installation steps:			10sec
wait_asc	[+] Stage 1 : Install FAT32-enabled kernel		1min
wait_asc	[+] Stage 2 : Create startup configuration file		1min
wait_asc	[+] Stage 3 : Create startup automation file		1min
wait_asc	[+] Stage 4 : Setting up translated programs.		1min
wait_asc	[+] Stage 5 : Setup all packages.			1min
wait_asc	[+] Stage 6 : Done, reboot system?			1min
wait_asc	FreeDOS System Installer v3.7a, Aug 10 2011		1min
wait_asc	Processing boot sector...				1min
wait_asc	FAT type: FAT16						1min
wait_asc	System transferred					1min
wait_asc	C:\FDOS\bin\syslinux.cfg => C:\FDOS\syslinux.cfg	1min
wait_asc	For your convenience the contents of drive C:'s		1min
# wait_asc	...
wait_asc	Please select what to do with the bootsector		1min
wait_asc	1) Write FreeDOS specific code to this area so		10sec
wait_asc	2) Install and configure the Syslinux bootloader	10sec
wait_asc	3) Try to integrate FreeDOS into the system's		10sec
wait_asc	4) Skip updating and restart system from harddisk	10sec
wait_asc	5) Skip updating and finalise installation by		10sec
wait_asc	Please select now:					10sec
type		"1"
#
wait_asc	Welcome to FreeDOS 1.1 [http://www.freedos.org]		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
type		"h"
#
wait_asc	1 - Load FreeDOS with JEMMEX, no EMS (most UMBs),	1min
wait_asc	2 - Load FreeDOS with EMM386 (Expanded Memory)		10sec
wait_asc	3 - Load FreeDOS including XMGR XMS-memory driver	10sec
wait_asc	4 - Load FreeDOS without drivers			10sec
wait_asc	Select from Menu [1234], or press [ENTER]		10sec
wait_asc	Singlestepping (F8) is: OFF				10sec
type		"\0d"
#
# FIXME
#
wait_asc	FIXME							1min
