X-Git-Url: https://iankelling.org/git/?p=automated-distro-installer;a=blobdiff_plain;f=fai%2Fconfig%2Fclass%2F41-warning.sh;h=e9f9ec5b396bffc40147e1fed3ffde799e4dd947;hp=4f6e6f26358d219799a07b1e5807d8bf7c76d93d;hb=bc3037fe2075e33b0035fc0689f44a60381638f9;hpb=2773c14668a490a1254a63541e1ef9fd3377104b diff --git a/fai/config/class/41-warning.sh b/fai/config/class/41-warning.sh index 4f6e6f2..e9f9ec5 100755 --- a/fai/config/class/41-warning.sh +++ b/fai/config/class/41-warning.sh @@ -13,6 +13,16 @@ grep -q INSTALL $LOGDIR/FAI_CLASSES || return 0 [ "$flag_menu" ] || return 0 out=$(tty) +red=$(mktemp) +echo 'screen_color = (CYAN,RED,ON)' > $red -dialog --colors --clear --aspect 6 --title "FAI - Fully Automatic Installation" --trim \ +DIALOGRC=$red dialog --colors --clear --aspect 6 --title "FAI - Fully Automatic Installation" --trim \ --msgbox "\n\n If you continue, \n all your data on the disk \n \n|\Zr\Z1 WILL BE DESTROYED \Z0\Zn|\n\n" 0 0 1>$out + +# stop on any error, or if ESC was hit +if [ $? -ne 0 ]; then + task_error 999 +fi + +rm $red +unset red