622 |
messagebox -y 12 -h $"Detected hardware:" "${message}" |
messagebox -y 12 -h $"Detected hardware:" "${message}" |
623 |
} |
} |
624 |
|
|
625 |
|
task_select_target_hdd() |
626 |
|
{ |
627 |
|
if [[ -z ${ALL_DISKS} ]] |
628 |
|
then |
629 |
|
dialog_no_harddrive_found |
630 |
|
exit 1 |
631 |
|
else |
632 |
|
export HDD=$(dialog_select_target_harddrive) |
633 |
|
fi |
634 |
|
} |
635 |
|
|
636 |
task_setup_hdd_partitions() |
task_setup_hdd_partitions() |
637 |
{ |
{ |
|
local i |
|
638 |
local retval |
local retval |
639 |
|
|
640 |
if [[ -z ${ALL_DISKS} ]] |
if [[ -z ${HDD} ]] |
641 |
then |
then |
642 |
dialog_no_harddrive_found |
dialog_no_harddrive_found |
643 |
exit 1 |
exit 1 |
644 |
else |
else |
645 |
HDD=$(dialog_select_target_harddrive) |
dialog_setup_hdd_info |
646 |
retval=$? |
setup_hdd_partitions |
|
[[ ${retval} -eq 1 ]] && return 1 |
|
|
if [[ ${retval} -eq 0 ]] |
|
|
then |
|
|
dialog_setup_hdd_info |
|
|
setup_hdd_partitions |
|
|
fi |
|
647 |
fi |
fi |
648 |
} |
} |
649 |
|
|
674 |
local method="$1" |
local method="$1" |
675 |
|
|
676 |
task_hardware_detection |
task_hardware_detection |
677 |
|
task_select_target_hdd |
678 |
|
|
679 |
case "${method}" in |
case "${method}" in |
680 |
auto) |
auto) |