genconfig.sh: allow --firewall option on BSD's too

This commit is contained in:
Thomas Bernard 2020-04-21 00:20:43 +02:00
parent 89e63507ac
commit db82286683
No known key found for this signature in database
GPG Key ID: 0FF11B67A5C0863C
1 changed files with 4 additions and 4 deletions

View File

@ -47,7 +47,7 @@ case "$argv" in
echo " --portinuse enable port in use check"
echo " --uda-version=x.x set advertised UPnP version (default to ${UPNP_VERSION_MAJOR}.${UPNP_VERSION_MINOR})"
echo " --disable-pppconn disable WANPPPConnection"
echo " --firewall=<name> force the firewall type (only for linux)"
echo " --firewall=<name> force the firewall type (nftables, iptables, pf, ipf, ipfw)"
exit 1
;;
*)
@ -202,7 +202,7 @@ 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/defaults/rc.conf ] ; then
if [ -z $FW ] && [ -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
@ -239,7 +239,7 @@ case $OS_NAME in
;;
NetBSD)
BSDMAKE=1
if [ -f /etc/rc.subr ] && [ -f /etc/rc.conf ] ; then
if [ -z $FW ] && [ -f /etc/rc.subr ] && [ -f /etc/rc.conf ] ; then
# source file with handy subroutines like checkyesno
. /etc/rc.subr
# source config file so we can probe vars
@ -259,7 +259,7 @@ case $OS_NAME in
;;
DragonFly)
BSDMAKE=1
if [ -f /etc/rc.subr ] && [ -f /etc/rc.conf ] ; then
if [ -z $FW ] && [ -f /etc/rc.subr ] && [ -f /etc/rc.conf ] ; then
# source file with handy subroutines like checkyesno
. /etc/rc.subr
# source config file so we can probe vars