246 |
export ALL_CDROMS="$(get_hwinfo cdrom)" |
export ALL_CDROMS="$(get_hwinfo cdrom)" |
247 |
} |
} |
248 |
|
|
|
dialog_setup_hdd_create_partitions() |
|
|
{ |
|
|
dialog \ |
|
|
--backtitle "${TITLE}" \ |
|
|
--infobox "Erstelle Disk Partitionen ..." 3 70 |
|
|
} |
|
|
|
|
|
dialog_setup_hdd_format() |
|
|
{ |
|
|
dialog \ |
|
|
--backtitle "${TITLE}" \ |
|
|
--infobox "Erstelle Datei-Systeme ..." 3 70 |
|
|
} |
|
|
|
|
|
dialog_install_settings() |
|
|
{ |
|
|
dialog \ |
|
|
--backtitle "${TITLE}" \ |
|
|
--infobox "Speichere System-Einstellungen ..." 3 70 |
|
|
} |
|
|
|
|
|
dialog_install_system_image() |
|
|
{ |
|
|
dialog \ |
|
|
--backtitle "${TITLE}" \ |
|
|
--gauge "Kopiere System-Image ..." 6 80 |
|
|
} |
|
|
|
|
249 |
install_meter() |
install_meter() |
250 |
{ |
{ |
251 |
while [[ ${CURRENTLINE} != ${TOTALLINES} ]] |
while [[ ${CURRENTLINE} != ${TOTALLINES} ]] |
259 |
return 0 |
return 0 |
260 |
} |
} |
261 |
|
|
|
|
|
|
dialog_install_bootsector() |
|
|
{ |
|
|
dialog \ |
|
|
--backtitle "${TITLE}" \ |
|
|
--infobox "Schreibe den Bootsektor ..." 3 70 |
|
|
} |
|
|
|
|
|
dialog_install_successful() |
|
|
{ |
|
|
dialog \ |
|
|
--backtitle "${TITLE}" \ |
|
|
--colors \ |
|
|
--msgbox "Die Installation war \Z2erfolgreich\Zn." 5 81 |
|
|
} |
|
|
|
|
|
dialog_install_failure() |
|
|
{ |
|
|
dialog \ |
|
|
--backtitle "${TITLE}" \ |
|
|
--colors \ |
|
|
--msgbox "Die Installation ist \Z1Fehlgeschlagen\Zn.\n\n\ |
|
|
Fehler bei ${ERROR}, RetVal: ${RETVAL} \ |
|
|
" 10 81 |
|
|
} |
|
|
|
|
262 |
dialog_main() |
dialog_main() |
263 |
{ |
{ |
264 |
local method=0 |
local method=0 |
266 |
|
|
267 |
while [[ ${method} -le 2 ]] |
while [[ ${method} -le 2 ]] |
268 |
do |
do |
269 |
method=$(dialog \ |
method=$(menubox $"Configuration:" \ |
270 |
--backtitle "${TITLE}" \ |
$"1:Install system" \ |
271 |
--no-cancel \ |
$"2:Show detected harddrives" \ |
272 |
--ok-label "Weiter" \ |
$"3:Exit and reboot" \ |
273 |
--stdout \ |
$"4:Exit and drop into a shell") |
|
--menu "Konfiguration" 14 70 5 \ |
|
|
"1" "AutoSta_LX installieren" \ |
|
|
"2" "Uebersicht gefundener Laufwerke" \ |
|
|
"3" "Beenden und neustarten" \ |
|
|
"4" "Beenden und eine Shell starten") |
|
274 |
retval=$? |
retval=$? |
275 |
[[ ${retval} -eq 1 ]] && exit 1 |
[[ ${retval} -eq 1 ]] && exit 1 |
276 |
if [[ ${retval} -eq 0 ]] |
if [[ ${retval} -eq 0 ]] |