Merge "Handle unconfigured interfaces for dhcp-all-ifaces"
This commit is contained in:
commit
45afd99012
@ -56,7 +56,15 @@ function config_exists() {
|
|||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
else
|
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
|
fi
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user