--- trunk/installer-simple/functions/installer-dialogs.sh 2014/01/07 13:50:50 2421 +++ trunk/installer-simple/functions/installer-dialogs.sh 2014/01/08 08:59:52 2475 @@ -8,7 +8,77 @@ OK_LABEL=$"Exit" messagebox -y 10 -x 70 -h $"Finish" $"Installation was successfully finished." } +dialog_setup_hdd_create_partitions() +{ + infobox $"Creating partitions ..." +} + +dialog_setup_hdd_format() +{ + infobox $"Creating filesystems ..." +} + +dialog_install_settings() +{ + infobox $"Saving system settings ..." +} + +dialog_install_system_image() +{ + gaugebox $"Copying system image ..." +} + +dialog_install_initrd() +{ + infobox $"Writing initrd ..." +} + +dialog_install_bootsector() +{ + infobox $"Writing bootsector ..." +} + +dialog_install_successful() +{ + messagebox $"The installation was \Z2successful\Zn." +} + +dialog_install_failure() +{ + messagebox $"The installation \Z1failed\Zn.\n\nError at ${ERROR}, RetVal: ${RETVAL}" +} + dialog_no_harddrive_found() { - OK_LABEL=$"abort" messagebox $"No appropriate harddrive found.\nInstallation failed." + OK_LABEL=$"Abort" messagebox $"No appropriate harddrive found.\nInstallation failed." +} + +dialog_select_target_harddrive() +{ + menubox $"Select installation target drive:" $(for i in ${ALL_DISKS}; do echo "${i}:";done) +} + +dialog_setup_hdd_info() +{ + local drivenode="${HDD//\/dev\/}" + + messagebox -h $"[ Harddrive partitioning ]" \ + $"Please create 1 partition.\n\n[ \Z3${drivenode}1\Zn ] type: \Z3linux\Zn with the whole diskspace.\nPlease mark ${SHDD}1 \Z3bootable\Zn." +} + +dialog_setup_hdd_info_auto() +{ + local drivenode="${HDD//\/dev\/}" + + messagebox -h $"[ Harddrive partitioning ]" \ + $"\Z1Warning!\Zn\n\nAll data on disk [ \Z3${drivenode}\Zn ] will be erased!" +} + +dialog_setup_system_menu() +{ + menubox -h $"[ Harddrive partitioning ]" $"\nSelect an installation mode" \ + $"1:Automatic setup (recommended)" \ + ":" \ + $":\Z1Expert modes:\Zn" \ + $"2:Common IDE-disk (manual setup)" }