summaryrefslogtreecommitdiffstats
path: root/templates/base/99_setup_EULAconf.sh
diff options
context:
space:
mode:
Diffstat (limited to 'templates/base/99_setup_EULAconf.sh')
-rw-r--r--templates/base/99_setup_EULAconf.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/templates/base/99_setup_EULAconf.sh b/templates/base/99_setup_EULAconf.sh
index fe65f4ea6..351401d11 100644
--- a/templates/base/99_setup_EULAconf.sh
+++ b/templates/base/99_setup_EULAconf.sh
@@ -2,7 +2,11 @@ case "$EULA_ACCEPT" in
1)
echo "" >> $BUILDDIR/conf/local.conf
echo "# EULA" >> $BUILDDIR/conf/local.conf
- echo "ACCEPT_EULA_$MACHINE = \"1\"" >> $BUILDDIR/conf/local.conf
+ if test x"" = x"$EULA_FLAG_NAME"; then
+ echo "ACCEPT_EULA_$MACHINE = \"1\"" >> $BUILDDIR/conf/local.conf
+ else
+ echo "$EULA_FLAG_NAME = \"1\"" >> $BUILDDIR/conf/local.conf
+ fi
;;
*)
;;