miniupnpd/configure: fix comparaison

[ "$IPTABLES_143" -eq 1 ]
doesn't work if $ITABLES_143 is empty
using instead :
 [ "$IPTABLES_143" = "1" ]
This commit is contained in:
Thomas Bernard 2021-09-30 01:29:03 +02:00
parent c88178650e
commit 6e16650bc2
No known key found for this signature in database
GPG Key ID: DB511043A31ACAAF
1 changed files with 2 additions and 2 deletions

4
miniupnpd/configure vendored
View File

@ -492,7 +492,7 @@ case $FW in
-o \( \( $IPTVER2 -eq 4 \) -a \( $IPTVER3 -ge 3 \) \) \) ] ; then
IPTABLES_143=1
fi
if [ "$IPTABLES_143" -eq 1 ] ; then
if [ "$IPTABLES_143" = "1" ] ; then
echo "LDLIBS += ${IPTABLESPATH}/libiptc/.libs/libip4tc.o" >> config.mk
else
echo "LDLIBS += ${IPTABLESPATH}/libiptc/libiptc.a" >> config.mk
@ -527,7 +527,7 @@ case $FW in
fi
echo "/* when IPTABLES_143 is defined, miniupnpd uses the new API" >> ${CONFIGFILE}
echo " * from libiptc 1.4.3+ */ " >> ${CONFIGFILE}
if [ "$IPTABLES_143" -eq 1 ] ; then
if [ "$IPTABLES_143" = "1" ] ; then
echo "#define IPTABLES_143" >> ${CONFIGFILE}
else
echo "#undef IPTABLES_143" >> ${CONFIGFILE}