Ignore resolvconf error messages if the interface does not exist.

This commit is contained in:
Roy Marples 2008-02-11 20:04:15 +00:00
parent 3198d81a1f
commit 5e470afb52

View File

@ -666,7 +666,7 @@ stop()
[ "${IFACE}" != "lo" -a "${IFACE}" != "lo0" ] && \
_down 2>/dev/null
type resolvconf >/dev/null 2>&1 && resolvconf -d "${IFACE}"
type resolvconf >/dev/null 2>&1 && resolvconf -d "${IFACE}" 2>/dev/null
if type postdown >/dev/null 2>&1; then
ebegin "Running postdown"