72 |
# DIALOG BOXEN # |
# DIALOG BOXEN # |
73 |
################################################# |
################################################# |
74 |
|
|
75 |
|
trap_exit() |
76 |
|
{ |
77 |
|
is_mounted --location "${INSTALLROOT}/dev" && umount ${INSTALLROOT}/dev |
78 |
|
is_mounted --location "${INSTALLROOT}/proc" && umount ${INSTALLROOT}/proc |
79 |
|
is_mounted --location "${INSTALLROOT}/sys" && umount ${INSTALLROOT}/sys |
80 |
|
is_mounted --location "${INSTALLROOT}/boot" && umount ${INSTALLROOT}/boot |
81 |
|
is_mounted --location "${INSTALLROOT}" && umount ${INSTALLROOT} |
82 |
|
|
83 |
|
echo $"Installation aborted." |
84 |
|
exit 1 |
85 |
|
} |
86 |
|
|
87 |
dialog_die() |
dialog_die() |
88 |
{ |
{ |
89 |
ERROR="$1" |
ERROR="$1" |
875 |
dialog_install_successful |
dialog_install_successful |
876 |
} |
} |
877 |
|
|
878 |
|
# set some proper traps |
879 |
|
trap "trap_exit" SIGINT SIGQUIT |
880 |
|
|
881 |
dialog_main |
dialog_main |
882 |
|
|
883 |
exit 0 |
exit 0 |