172 |
messagebox -y 12 -h $"Detected hardware:" "${message}" |
messagebox -y 12 -h $"Detected hardware:" "${message}" |
173 |
} |
} |
174 |
|
|
175 |
dialog_setup_hdd_partitions_manual() |
task_setup_hdd_partitions_manual() |
176 |
{ |
{ |
177 |
local i |
local i |
178 |
local retval |
local retval |
228 |
return 0 |
return 0 |
229 |
} |
} |
230 |
|
|
231 |
dialog_main() |
task_main() |
232 |
{ |
{ |
233 |
local method=0 |
local method=0 |
234 |
local retval |
local retval |
235 |
|
|
236 |
while [[ ${method} -le 2 ]] |
while [[ ${method} -le 2 ]] |
237 |
do |
do |
238 |
method=$(CANCEL_LABEL=$"Exit" menubox $"Configuration:" \ |
method=$(dialog_main) |
|
$"1:Install system" \ |
|
|
$"2:Show detected harddrives" \ |
|
|
$"3:Exit and reboot" \ |
|
|
$"4:Exit and drop into a shell") |
|
239 |
retval=$? |
retval=$? |
240 |
[[ ${retval} -eq 1 ]] && exit 1 |
[[ ${retval} -eq 1 ]] && exit 1 |
241 |
if [[ ${retval} -eq 0 ]] |
if [[ ${retval} -eq 0 ]] |
639 |
{ |
{ |
640 |
dialog_hardware_detection |
dialog_hardware_detection |
641 |
|
|
642 |
dialog_setup_hdd_partitions_manual |
task_setup_hdd_partitions_manual |
643 |
dialog_setup_hdd_format |
dialog_setup_hdd_format |
644 |
setup_hdd_format > /dev/null |
setup_hdd_format > /dev/null |
645 |
install_mount_rootfs |
install_mount_rootfs |
694 |
# set some proper traps |
# set some proper traps |
695 |
trap "trap_exit" SIGINT SIGQUIT |
trap "trap_exit" SIGINT SIGQUIT |
696 |
|
|
697 |
dialog_main |
task_main |
698 |
|
|
699 |
exit 0 |
exit 0 |