update to upstream 5.3.4
[automated-distro-installer] / fai / config / class / 41-warning.sh
diff --git a/fai/config/class/41-warning.sh b/fai/config/class/41-warning.sh
new file mode 100755 (executable)
index 0000000..b3da9fe
--- /dev/null
@@ -0,0 +1,18 @@
+#! /bin/bash
+
+if [ X$FAI_ACTION = Xinstall -o X$FAI_ACTION = X ]; then
+    :
+else
+    return
+fi
+if [ X$action = Xdirinstall ]; then
+    return
+fi
+
+grep -q INSTALL $LOGDIR/FAI_CLASSES || return 0
+[ "$flag_menu" ] || return 0
+
+out=$(tty)
+
+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