previous check reported ok even when DHCP failed
---
scripts/ovirt-functions | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/scripts/ovirt-functions b/scripts/ovirt-functions
index 1db89ae..866f963 100644
--- a/scripts/ovirt-functions
+++ b/scripts/ovirt-functions
@@ -734,7 +734,7 @@ is_valid_ipv4 () {
# Check if networking is already up
network_up () {
- test -n "$(/sbin/ip -o link show up | cut -d: -f2 | grep -v
'lo$')"
+ ip addr show | grep -q "inet.*scope global"
}
# execute a function if called as a script, e.g.
--
1.6.0.6