Merge "Handle unconfigured interfaces for dhcp-all-ifaces"

This commit is contained in:
Jenkins 2016-04-21 05:23:37 +00:00 committed by Gerrit Code Review
commit 45afd99012

View File

@ -56,7 +56,15 @@ function config_exists() {
return 0
fi
else
ifquery $interface >/dev/null 2>&1 && return 0 || return 1
if ifquery $interface >/dev/null 2>&1; then
if [ -z "$(ifquery $interface 2>&1)" ]; then
return 1
else
return 0
fi
else
return 1
fi
fi
return 1
}