40 |
|
|
41 |
dialog_install_successful() |
dialog_install_successful() |
42 |
{ |
{ |
43 |
messagebox $"The installation was \Z2successful\Zn." |
OK_LABEL=$"Finish" messagebox $"The installation was \Z2successful\Zn." |
44 |
} |
} |
45 |
|
|
46 |
dialog_install_failure() |
dialog_install_failure() |
50 |
|
|
51 |
dialog_no_harddrive_found() |
dialog_no_harddrive_found() |
52 |
{ |
{ |
53 |
OK_LABEL=$"abort" messagebox $"No appropriate harddrive found.\nInstallation failed." |
OK_LABEL=$"Abort" messagebox $"No appropriate harddrive found.\nInstallation failed." |
54 |
} |
} |
55 |
|
|
56 |
dialog_select_target_harddrive() |
dialog_select_target_harddrive() |
57 |
{ |
{ |
58 |
menubox $"Select installation target drive:" $(for i in ${ALL_DISKS}; do echo "${i}:";done) |
menubox $"Select installation target drive:" $(for i in ${ALL_DISKS}; do echo "${i}:";done) |
59 |
} |
} |
60 |
|
|
61 |
|
dialog_setup_hdd_info() |
62 |
|
{ |
63 |
|
case "${INSTALL_METHOD}" in |
64 |
|
auto) |
65 |
|
dialog_setup_hdd_info_auto |
66 |
|
dialog_setup_hdd_create_partitions |
67 |
|
;; |
68 |
|
normal) dialog_setup_hdd_info_normal ;; |
69 |
|
single) dialog_setup_hdd_info_single ;; |
70 |
|
esac |
71 |
|
} |
72 |
|
|
73 |
|
dialog_setup_hdd_info_normal() |
74 |
|
{ |
75 |
|
local drivenode="${HDD//\/dev\/}" |
76 |
|
|
77 |
|
messagebox -h $"[ Harddrive partitioning ]" \ |
78 |
|
$"Please create 3 partitions.\n\n |
79 |
|
[ \Z3${drivenode}1\Zn ] type: \Z3linux\Zn with ca. 50MB diskspace\n[ \Z3${drivenode}2\Zn ] type: \Z3linux Swap\Zn with ca. 256MB diskspace\n[ \Z3${drivenode}3\Zn ] type: \Z3linux\Zn with the remaining diskspace (min. 512MB)\n.\nPlease mark ${drivenode}1 \Z3bootable\Zn." |
80 |
|
} |
81 |
|
|
82 |
|
dialog_setup_hdd_info_auto() |
83 |
|
{ |
84 |
|
local drivenode="${HDD//\/dev\/}" |
85 |
|
|
86 |
|
messagebox -h $"[ Harddrive partitioning ]" \ |
87 |
|
$"\Z1Warning!\Zn\n\nAll data on disk [ \Z3${drivenode}\Zn ] will be erased!" |
88 |
|
} |
89 |
|
|
90 |
|
dialog_setup_hdd_info_single() |
91 |
|
{ |
92 |
|
local drivenode="${HDD//\/dev\/}" |
93 |
|
|
94 |
|
messagebox -h $"[ Harddrive partitioning ]" \ |
95 |
|
$"Please create 1 partition.\n\n[ \Z3${drivenode}1\Zn ] type: \Z3linux\Zn with the whole diskspace.\nPlease mark ${drivenode}1 \Z3bootable\Zn." |
96 |
|
} |
97 |
|
|
98 |
|
dialog_setup_system_menu() |
99 |
|
{ |
100 |
|
menubox -h $"[ Harddrive partitioning ]" $"\nSelect an installation mode" \ |
101 |
|
$"1:Automatic setup (recommended)" \ |
102 |
|
":" \ |
103 |
|
$":\Z1Expert modes:\Zn" \ |
104 |
|
$"2:Common IDE-disk (manual setup)" \ |
105 |
|
$"3:Common IDE-disk (single partition)" |
106 |
|
} |
107 |
|
|
108 |
|
dialog_main() |
109 |
|
{ |
110 |
|
CANCEL_LABEL=$"Exit" menubox $"Configuration:" \ |
111 |
|
$"1:Install system" \ |
112 |
|
$"2:Show detected harddrives" \ |
113 |
|
$"3:Exit and reboot" \ |
114 |
|
$"4:Exit and drop into a shell" |
115 |
|
} |