Merge "dhcp-all-interfaces: correct ifquery return stmt"
This commit is contained in:
commit
eacdb2a4a5
@ -58,12 +58,11 @@ function config_exists() {
|
|||||||
if [ "$CONF_TYPE" == "netscripts" ]; then
|
if [ "$CONF_TYPE" == "netscripts" ]; then
|
||||||
if [ -f "/etc/sysconfig/network-scripts/ifcfg-$interface" ]; then
|
if [ -f "/etc/sysconfig/network-scripts/ifcfg-$interface" ]; then
|
||||||
return 0
|
return 0
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
|
ifquery $interface >/dev/null 2>&1 && return 0
|
||||||
|
fi
|
||||||
return 1
|
return 1
|
||||||
fi
|
|
||||||
else
|
|
||||||
return ifquery $interface >/dev/null 2>&1
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function inspect_interface() {
|
function inspect_interface() {
|
||||||
|
Loading…
Reference in New Issue
Block a user