191 |
dialog_setup_hdd_partitions_manual() |
dialog_setup_hdd_partitions_manual() |
192 |
{ |
{ |
193 |
local i |
local i |
194 |
|
local retval |
195 |
|
|
196 |
if [[ -z ${ALL_DISKS} ]] |
if [[ -z ${ALL_DISKS} ]] |
197 |
then |
then |
198 |
dialog \ |
dialog_no_harddrive_found |
|
--backtitle "${TITLE}" \ |
|
|
--ok-label "Beenden" \ |
|
|
--msgbox "Kein geeignetes Laufwerk gefunden.\nDie Installation ist fehlgeschlagen." 6 70 |
|
199 |
exit 1 |
exit 1 |
200 |
else |
else |
201 |
|
HDD=$(dialog_select_target_harddrive) |
202 |
echo "dialog \\" > /tmp/hddtmp.sh |
retval=$? |
203 |
echo "--backtitle \"${TITLE}\" \\" >> /tmp/hddtmp.sh |
[[ ${retval} -eq 1 ]] && return 1 |
204 |
echo "--ok-label \"Weiter\" \\" >> /tmp/hddtmp.sh |
if [[ ${retval} -eq 0 ]] |
|
echo "--cancel-label \"Beenden\" \\" >> /tmp/hddtmp.sh |
|
|
echo "--stdout \\" >> /tmp/hddtmp.sh |
|
|
echo "--menu \"Installations Laufwerk auswaehlen:\" 10 70 3 \\" >> /tmp/hddtmp.sh |
|
|
|
|
|
for i in ${ALL_DISKS} |
|
|
do |
|
|
echo "\"${i}\" \"\" \\" >> /tmp/hddtmp.sh |
|
|
done |
|
|
echo -e "\n" >> /tmp/hddtmp.sh |
|
|
|
|
|
chmod a+x /tmp/hddtmp.sh |
|
|
HDD="$(/tmp/hddtmp.sh)" |
|
|
RES=$? |
|
|
[[ ${RES} -eq 1 ]] && return 1 |
|
|
if [[ ${RES} -eq 0 ]] |
|
205 |
then |
then |
206 |
dialog_setup_hdd_info |
dialog_setup_hdd_info |
207 |
setup_hdd_partitions_manual |
setup_hdd_partitions_manual |
212 |
dialog_setup_hdd_partitions_auto() |
dialog_setup_hdd_partitions_auto() |
213 |
{ |
{ |
214 |
local i |
local i |
215 |
|
local retval |
216 |
|
|
217 |
if [[ -z ${ALL_DISKS} ]] |
if [[ -z ${ALL_DISKS} ]] |
218 |
then |
then |
219 |
dialog \ |
dialog_no_harddrive_found |
|
--backtitle "${TITLE}" \ |
|
|
--ok-label "Beenden" \ |
|
|
--msgbox "Kein geeignetes Laufwerk gefunden.\nDie Installation ist fehlgeschlagen." 6 70 |
|
220 |
exit 1 |
exit 1 |
221 |
else |
else |
222 |
|
HDD=$(dialog_select_target_harddrive) |
223 |
echo "dialog \\" > /tmp/hddtmp.sh |
retval=$? |
224 |
echo "--backtitle \"${TITLE}\" \\" >> /tmp/hddtmp.sh |
[[ ${retval} -eq 1 ]] && return 1 |
225 |
echo "--ok-label \"Weiter\" \\" >> /tmp/hddtmp.sh |
if [[ ${retval} -eq 0 ]] |
|
echo "--cancel-label \"Beenden\" \\" >> /tmp/hddtmp.sh |
|
|
echo "--stdout \\" >> /tmp/hddtmp.sh |
|
|
echo "--menu \"Installations Laufwerk auswaehlen:\" 10 70 3 \\" >> /tmp/hddtmp.sh |
|
|
|
|
|
for i in ${ALL_DISKS} |
|
|
do |
|
|
echo "\"${i}\" \"\" \\" >> /tmp/hddtmp.sh |
|
|
done |
|
|
echo -e "\n" >> /tmp/hddtmp.sh |
|
|
|
|
|
chmod a+x /tmp/hddtmp.sh |
|
|
HDD="$(/tmp/hddtmp.sh)" |
|
|
RES=$? |
|
|
[[ ${RES} -eq 1 ]] && return 1 |
|
|
if [[ ${RES} -eq 0 ]] |
|
226 |
then |
then |
227 |
dialog_setup_hdd_info_auto |
dialog_setup_hdd_info_auto |
228 |
dialog_setup_hdd_create_partitions |
dialog_setup_hdd_create_partitions |
274 |
--gauge "Kopiere System-Image ..." 6 80 |
--gauge "Kopiere System-Image ..." 6 80 |
275 |
} |
} |
276 |
|
|
277 |
dialog_install_meter() |
install_meter() |
278 |
{ |
{ |
279 |
while [[ ${CURRENTLINE} != ${TOTALLINES} ]] |
while [[ ${CURRENTLINE} != ${TOTALLINES} ]] |
280 |
do |
do |
315 |
|
|
316 |
dialog_main() |
dialog_main() |
317 |
{ |
{ |
318 |
METHOD=0 |
local method=0 |
319 |
|
local retval |
320 |
|
|
321 |
while [[ ${METHOD} -le 2 ]] |
while [[ ${method} -le 2 ]] |
322 |
do |
do |
323 |
METHOD=$(dialog \ |
method=$(dialog \ |
324 |
--backtitle "${TITLE}" \ |
--backtitle "${TITLE}" \ |
325 |
--no-cancel \ |
--no-cancel \ |
326 |
--ok-label "Weiter" \ |
--ok-label "Weiter" \ |
330 |
"2" "Uebersicht gefundener Laufwerke" \ |
"2" "Uebersicht gefundener Laufwerke" \ |
331 |
"3" "Beenden und neustarten" \ |
"3" "Beenden und neustarten" \ |
332 |
"4" "Beenden und eine Shell starten") |
"4" "Beenden und eine Shell starten") |
333 |
RES=$? |
retval=$? |
334 |
[[ ${RES} -eq 1 ]] && exit 1 |
[[ ${retval} -eq 1 ]] && exit 1 |
335 |
if [[ ${RES} -eq 0 ]] |
if [[ ${retval} -eq 0 ]] |
336 |
then |
then |
337 |
case ${METHOD} in |
case ${method} in |
338 |
"1") dialog_setup_system_menu ;; |
"1") dialog_setup_system_menu ;; |
339 |
"2") dialog_hardware_detection ;; |
"2") dialog_hardware_detection ;; |
340 |
"3") install_do_reboot ;; |
"3") install_do_reboot ;; |
769 |
dialog_setup_hdd_format |
dialog_setup_hdd_format |
770 |
setup_hdd_format > /dev/null |
setup_hdd_format > /dev/null |
771 |
install_mount_rootfs |
install_mount_rootfs |
772 |
(install_system_image > /tmp/install.log) 2> /tmp/install_errors.log | dialog_install_meter | dialog_install_system_image |
(install_system_image > /tmp/install.log) 2> /tmp/install_errors.log | install_meter | dialog_install_system_image |
773 |
|
|
774 |
dialog_install_settings |
dialog_install_settings |
775 |
sleep 1 |
sleep 1 |
791 |
dialog_setup_hdd_format |
dialog_setup_hdd_format |
792 |
setup_hdd_format > /dev/null |
setup_hdd_format > /dev/null |
793 |
install_mount_rootfs |
install_mount_rootfs |
794 |
(install_system_image > /tmp/install.log) 2> /tmp/install_errors.log | dialog_install_meter | dialog_install_system_image |
(install_system_image > /tmp/install.log) 2> /tmp/install_errors.log | install_meter | dialog_install_system_image |
795 |
|
|
796 |
dialog_install_settings |
dialog_install_settings |
797 |
sleep 1 |
sleep 1 |