From 5e11ef3245178cc21b24255a4b663cb85f91462f Mon Sep 17 00:00:00 2001 From: Thomas Bernard Date: Sun, 29 Mar 2020 10:54:26 +0200 Subject: [PATCH] miniupnpd: fix FreeBSD Firewall detection fixes #431 --- miniupnpd/genconfig.sh | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/miniupnpd/genconfig.sh b/miniupnpd/genconfig.sh index 586032f..b5e85c1 100755 --- a/miniupnpd/genconfig.sh +++ b/miniupnpd/genconfig.sh @@ -4,7 +4,7 @@ # # miniupnp daemon # http://miniupnp.free.fr or https://miniupnp.tuxfamily.org/ -# (c) 2006-2019 Thomas Bernard +# (c) 2006-2020 Thomas Bernard # This software is subject to the conditions detailed in the # LICENCE file provided within the distribution @@ -113,7 +113,7 @@ ${RM} ${CONFIGFILE} echo "/* MiniUPnP Project" >> ${CONFIGFILE} echo " * http://miniupnp.free.fr/ or https://miniupnp.tuxfamily.org/" >> ${CONFIGFILE} -echo " * (c) 2006-2019 Thomas Bernard" >> ${CONFIGFILE} +echo " * (c) 2006-2020 Thomas Bernard" >> ${CONFIGFILE} echo " * generated by $0 on `date`" >> ${CONFIGFILE} echo " * `uname -a`" >> ${CONFIGFILE} if [ -z "$*" ] ; then @@ -198,11 +198,14 @@ case $OS_NAME in HAVE_IP_MREQN=1 # new way to see which one to use PF or IPF. # see http://miniupnp.tuxfamily.org/forum/viewtopic.php?p=957 - if [ -f /etc/rc.subr ] && [ -f /etc/default/rc.conf ] ; then + if [ -f /etc/rc.subr ] && [ -f /etc/defaults/rc.conf ] ; then # source file with handy subroutines like checkyesno . /etc/rc.subr # source config file so we can probe vars - . /etc/default/rc.conf + . /etc/defaults/rc.conf + if [ -f /etc/rc.conf ] ; then + . /etc/rc.conf + fi if checkyesno ipfilter_enable; then echo "Using ipf" FW=ipf