search for: 2801bd8

Displaying 1 result from an estimated 1 matches for "2801bd8".

Did you mean: 28018
2010 Feb 04
3
[PATCH] Make configure_from_network function check if network is up, before touching it
...ce $DEVICE --bootproto dhcp" | nash + fi if [ $? -eq 0 ]; then # from network-scripts/ifup-post IPADDR=$(LC_ALL=C ip -o -4 addr ls dev ${DEVICE} | awk '{ print $4 ; exit }') diff --git a/scripts/ovirt-functions b/scripts/ovirt-functions index fc43343..2801bd8 100644 --- a/scripts/ovirt-functions +++ b/scripts/ovirt-functions @@ -709,6 +709,13 @@ is_valid_ipv4 () { return $result } +# Check if networking is already up +network_up () { + UPIFS=$(/sbin/ip -o link show up | awk -F ": " '{ print $2 }' | grep -v lo | wc -l) + t...