From d05abb5921d6cc359a329c43d843595033c4d4c0 Mon Sep 17 00:00:00 2001 From: Leo Moll Date: Fri, 13 Dec 2013 19:40:52 +0100 Subject: [PATCH] Added option to enable vendor configuration --- miniupnpd/genconfig.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/miniupnpd/genconfig.sh b/miniupnpd/genconfig.sh index efad1f5..9fda2f7 100755 --- a/miniupnpd/genconfig.sh +++ b/miniupnpd/genconfig.sh @@ -12,6 +12,7 @@ case "$argv" in --igd2) IGD2=1 ;; --strict) STRICT=1 ;; --leasefile) LEASEFILE=1 ;; + --vendorcfg) VENDORCFG=1 ;; --pcp) PCP=1 ;; --pcp-peer) PCP=1 @@ -23,6 +24,7 @@ case "$argv" in echo " --igd2 build an IGDv2 instead of an IGDv1" echo " --strict be more strict regarding compliance with UPnP specifications" echo " --leasefile enable lease file" + echo " --vendorcfg enable configuration of manufacturer info" echo " --pcp enable PCP" echo " --pcp-peer enable PCP PEER operation" exit 1 @@ -460,8 +462,12 @@ echo "/* disable reading and parsing of config file (miniupnpd.conf) */" >> ${CO echo "/*#define DISABLE_CONFIG_FILE*/" >> ${CONFIGFILE} echo "" >> ${CONFIGFILE} -echo "/* Unable the ability to configure all manufacturer infos through miniupnpd.conf */" >> ${CONFIGFILE} -echo "/*#define ENABLE_MANUFACTURER_INFO_CONFIGURATION*/" >> ${CONFIGFILE} +echo "/* Uncomment the following line to configure all manufacturer infos through miniupnpd.conf */" >> ${CONFIGFILE} +if [ -n "$VENDORCFG" ] ; then + echo "#define ENABLE_MANUFACTURER_INFO_CONFIGURATION" >> ${CONFIGFILE} +else + echo "/*#define ENABLE_MANUFACTURER_INFO_CONFIGURATION*/" >> ${CONFIGFILE} +fi echo "" >> ${CONFIGFILE} echo "#endif" >> ${CONFIGFILE}