16 |
# -> now in images.conf |
# -> now in images.conf |
17 |
CURRENTLINE=0 |
CURRENTLINE=0 |
18 |
|
|
19 |
|
die() |
20 |
|
{ |
21 |
|
echo "Error: $@" |
22 |
|
exit 1 |
23 |
|
} |
24 |
|
|
25 |
# configuration |
# configuration |
26 |
if [ -e %SYSCONFDIR%/installer.conf ] |
if [ -e %SYSCONFDIR%/installer.conf ] |
27 |
then |
then |
76 |
# DIALOG BOXEN # |
# DIALOG BOXEN # |
77 |
################################################# |
################################################# |
78 |
|
|
|
die() |
|
|
{ |
|
|
echo "Error: $@" |
|
|
exit 1 |
|
|
} |
|
|
|
|
79 |
dialog_die() |
dialog_die() |
80 |
{ |
{ |
81 |
ERROR="$1" |
ERROR="$1" |
86 |
|
|
87 |
dialog_warning() |
dialog_warning() |
88 |
{ |
{ |
89 |
dialog \ |
local retval |
90 |
--backtitle "${TITLE}" \ |
|
91 |
--colors \ |
yesnobox $"\Z1 !!! Warning !!! \Zn\n\n\This harddrive will be irreversibly erased.\n\n\Do you want to continue ?" |
92 |
--defaultno \ |
retval=$? |
93 |
--yesno "\Z1 !!! Achtung !!! \Zn\n\n\ |
if [[ ${retval} -eq 1 ]] |
|
Diese Festplatte wird unwiederruflich geloescht werden.\n\n\ |
|
|
Soll ich wirklich fortfahren ?" 10 70 |
|
|
RES=$? |
|
|
if [[ ${RES} -eq 1 ]] |
|
94 |
then |
then |
95 |
clear |
clear |
96 |
echo "Der Vorgang wurde abgebrochen." |
echo $"The process was aborted." |
97 |
exit 1 |
exit 1 |
98 |
fi |
fi |
99 |
} |
} |