This repository has been archived on 2024-05-18. You can view files and clone it, but cannot push or open issues or pull requests.
2022-07-15 11:59:26 +02:00
|
|
|
#! /bin/bash
|
|
|
|
|
|
|
|
if [ X$FAI_ACTION = Xinstall -o X$FAI_ACTION = X ]; then
|
|
|
|
:
|
|
|
|
else
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
if [ X$action = Xdirinstall ]; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
2023-06-01 15:25:01 +02:00
|
|
|
#grep -q INSTALL $LOGDIR/FAI_CLASSES || return 0
|
2022-07-15 11:59:26 +02:00
|
|
|
[ "$flag_menu" ] || return 0
|
|
|
|
|
|
|
|
out=$(tty)
|
|
|
|
red=$(mktemp)
|
|
|
|
echo 'screen_color = (CYAN,RED,ON)' > $red
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
# MENU DISABLED
|
|
|
|
unset flag_menu
|
|
|
|
FAI_ACTION=install
|