summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sysinstall/Makefile
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1997-01-17 10:57:26 +0000
committerjkh <jkh@FreeBSD.org>1997-01-17 10:57:26 +0000
commitdc311d3ebe8d1fd57546c7979f7f22ec79caac4b (patch)
treeaaa52a73ad198588ac3ae16c74af0b001d7c3e89 /usr.sbin/sysinstall/Makefile
parent2ce875e983c7c5de2fe3d2d8bf682bbec8bbd5ae (diff)
downloadFreeBSD-src-dc311d3ebe8d1fd57546c7979f7f22ec79caac4b.zip
FreeBSD-src-dc311d3ebe8d1fd57546c7979f7f22ec79caac4b.tar.gz
Pass LOAD_CONFIG_FILE variable through, if set (makes Paul Traina's life
easier). Only run install.cfg if running as init. It's something of a security hole otherwise. :)
Diffstat (limited to 'usr.sbin/sysinstall/Makefile')
-rw-r--r--usr.sbin/sysinstall/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/sysinstall/Makefile b/usr.sbin/sysinstall/Makefile
index d4b3e13..1b2762e 100644
--- a/usr.sbin/sysinstall/Makefile
+++ b/usr.sbin/sysinstall/Makefile
@@ -18,7 +18,9 @@ SRCS= anonFTP.c apache.c attr.c cdrom.c command.c config.c devices.c \
CFLAGS+= -Wall -I${.CURDIR}/../../gnu/lib/libdialog -I${.OBJDIR} -I/sys
CFLAGS+= -DUC_PRIVATE -DKERN_NO_SYMBOLS -DSAVE_USERCONFIG
-#CFLAGS+= -DLOAD_CONFIG_FILE=\"install.cfg\"
+.if defined(LOAD_CONFIG_FILE)
+CFLAGS+= -DLOAD_CONFIG_FILE=\"${LOAD_CONFIG_FILE}\"
+.endif
DPADD= ${LIBDIALOG} ${LIBNCURSES} ${LIBMYTINFO} ${LIBUTIL} ${LIBDISK} ${LIBFTPIO}
LDADD= -ldialog -lncurses -lmytinfo -lutil -ldisk -lftpio
OpenPOWER on IntegriCloud