From 444f23e2d158389b22d40537fc9b027d9f575229 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Wed, 28 Nov 2007 14:32:24 +0000 Subject: resolvconf may not be in /sbin --- sh/net.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sh') diff --git a/sh/net.sh b/sh/net.sh index 0215330f..5731ee13 100755 --- a/sh/net.sh +++ b/sh/net.sh @@ -652,7 +652,7 @@ stop() { [ "${IFACE}" != "lo" -a "${IFACE}" != "lo0" ] && \ _down 2>/dev/null - [ -x /sbin/resolvconf ] && resolvconf -d "${IFACE}" + type resolvconf >/dev/null 2>&1 && resolvconf -d "${IFACE}" if type postdown >/dev/null 2>/dev/null ; then ebegin "Running postdown" -- cgit v1.2.3