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=$(menubox $"Configuration:" \ |
324 |
--backtitle "${TITLE}" \ |
$"1:Install system" \ |
325 |
--no-cancel \ |
$"2:Show detected harddrives" \ |
326 |
--ok-label "Weiter" \ |
$"3:Exit and reboot" \ |
327 |
--stdout \ |
$"4:Exit and drop into a shell") |
328 |
--menu "Konfiguration" 14 70 5 \ |
retval=$? |
329 |
"1" "AutoSta_LX installieren" \ |
[[ ${retval} -eq 1 ]] && exit 1 |
330 |
"2" "Uebersicht gefundener Laufwerke" \ |
if [[ ${retval} -eq 0 ]] |
|
"3" "Beenden und neustarten" \ |
|
|
"4" "Beenden und eine Shell starten") |
|
|
RES=$? |
|
|
[[ ${RES} -eq 1 ]] && exit 1 |
|
|
if [[ ${RES} -eq 0 ]] |
|
331 |
then |
then |
332 |
case ${METHOD} in |
case ${method} in |
333 |
"1") dialog_setup_system_menu ;; |
"1") dialog_setup_system_menu ;; |
334 |
"2") dialog_hardware_detection ;; |
"2") dialog_hardware_detection ;; |
335 |
"3") install_do_reboot ;; |
"3") install_do_reboot ;; |