From dd99f0eb75282a1e07242b97fd55c7fc239de3d4 Mon Sep 17 00:00:00 2001 From: Thomas Bernard Date: Fri, 30 Oct 2020 23:11:44 +0100 Subject: [PATCH] sysctl is not always in /sbin --- miniupnpd/configure | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/miniupnpd/configure b/miniupnpd/configure index 64ecd1d..9a3ba3c 100755 --- a/miniupnpd/configure +++ b/miniupnpd/configure @@ -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/