sysctl is not always in /sbin

This commit is contained in:
Thomas Bernard 2020-10-30 23:11:44 +01:00
parent 72ec9e1943
commit dd99f0eb75
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

@ -1,5 +1,5 @@
#! /bin/sh
# $Id: configure,v 1.113 2020/10/30 21:11:52 nanard Exp $
# $Id: configure,v 1.114 2020/10/30 22:10:26 nanard Exp $
# vim: tabstop=4 shiftwidth=4 noexpandtab
#
# miniupnp daemon
@ -378,7 +378,7 @@ case $OS_NAME in
FW=iptables
fi
fi
V6SOCKETS_ARE_V6ONLY=`/sbin/sysctl -n net.ipv6.bindv6only`
V6SOCKETS_ARE_V6ONLY=`$(find /sbin /bin /usr/sbin /usr/bin -name /sysctl) -n net.ipv6.bindv6only`
;;
OpenWRT)
OS_URL=http://www.openwrt.org/