Magellan Linux

Contents of /trunk/installer-simple/functions/installer-dialogs.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2475 - (show annotations) (download) (as text)
Wed Jan 8 08:59:52 2014 UTC (10 years, 3 months ago) by niro
File MIME type: application/x-sh
File size: 1773 byte(s)
-split dialog_setup_system_menu() into task_setup_system_menu() and the dialog itself to dialog_setup_system_menu(), which moved to installer-dialogs.sh
1 welcome()
2 {
3 messagebox -y 10 -x 70 -h $"Welcome" $"Welcome to the ${DEFAULT_TITLE}.\n\n\nPress [Enter] to continue."
4 }
5
6 finish()
7 {
8 OK_LABEL=$"Exit" messagebox -y 10 -x 70 -h $"Finish" $"Installation was successfully finished."
9 }
10
11 dialog_setup_hdd_create_partitions()
12 {
13 infobox $"Creating partitions ..."
14 }
15
16 dialog_setup_hdd_format()
17 {
18 infobox $"Creating filesystems ..."
19 }
20
21 dialog_install_settings()
22 {
23 infobox $"Saving system settings ..."
24 }
25
26 dialog_install_system_image()
27 {
28 gaugebox $"Copying system image ..."
29 }
30
31 dialog_install_initrd()
32 {
33 infobox $"Writing initrd ..."
34 }
35
36 dialog_install_bootsector()
37 {
38 infobox $"Writing bootsector ..."
39 }
40
41 dialog_install_successful()
42 {
43 messagebox $"The installation was \Z2successful\Zn."
44 }
45
46 dialog_install_failure()
47 {
48 messagebox $"The installation \Z1failed\Zn.\n\nError at ${ERROR}, RetVal: ${RETVAL}"
49 }
50
51 dialog_no_harddrive_found()
52 {
53 OK_LABEL=$"Abort" messagebox $"No appropriate harddrive found.\nInstallation failed."
54 }
55
56 dialog_select_target_harddrive()
57 {
58 menubox $"Select installation target drive:" $(for i in ${ALL_DISKS}; do echo "${i}:";done)
59 }
60
61 dialog_setup_hdd_info()
62 {
63 local drivenode="${HDD//\/dev\/}"
64
65 messagebox -h $"[ Harddrive partitioning ]" \
66 $"Please create 1 partition.\n\n[ \Z3${drivenode}1\Zn ] type: \Z3linux\Zn with the whole diskspace.\nPlease mark ${SHDD}1 \Z3bootable\Zn."
67 }
68
69 dialog_setup_hdd_info_auto()
70 {
71 local drivenode="${HDD//\/dev\/}"
72
73 messagebox -h $"[ Harddrive partitioning ]" \
74 $"\Z1Warning!\Zn\n\nAll data on disk [ \Z3${drivenode}\Zn ] will be erased!"
75 }
76
77 dialog_setup_system_menu()
78 {
79 menubox -h $"[ Harddrive partitioning ]" $"\nSelect an installation mode" \
80 $"1:Automatic setup (recommended)" \
81 ":" \
82 $":\Z1Expert modes:\Zn" \
83 $"2:Common IDE-disk (manual setup)"
84 }