aboutsummaryrefslogtreecommitdiff
path: root/sh/net.sh
diff options
context:
space:
mode:
Diffstat (limited to 'sh/net.sh')
-rwxr-xr-xsh/net.sh2
1 files changed, 1 insertions, 1 deletions
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"