diff options
author | root <root@rshg054.dnsready.net> | 2012-04-07 00:01:17 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-04-07 00:01:17 +0000 |
commit | 3d65494a8eda056377febda4642ce992e69a9371 (patch) | |
tree | dae57e04ca5f7d7490acbde87206eaa62695109d /community-staging/open-vm-tools/scripts-network-FS19541.patch | |
parent | d9c1fc1bcca8fd5cd3566fc6b183fe23065778bc (diff) |
Sat Apr 7 00:01:16 UTC 2012
Diffstat (limited to 'community-staging/open-vm-tools/scripts-network-FS19541.patch')
-rw-r--r-- | community-staging/open-vm-tools/scripts-network-FS19541.patch | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/community-staging/open-vm-tools/scripts-network-FS19541.patch b/community-staging/open-vm-tools/scripts-network-FS19541.patch new file mode 100644 index 000000000..5fcb33ba8 --- /dev/null +++ b/community-staging/open-vm-tools/scripts-network-FS19541.patch @@ -0,0 +1,38 @@ +--- network.orig 2011-11-09 18:42:28.000000000 +0400 ++++ network 2011-11-09 18:46:22.000000000 +0400 +@@ -76,7 +76,7 @@ + else + echo `date` "[rescue_nic] activating $nic ..." + +- ifup $nic ++ ifconfig $nic up + exitCode=`expr $exitCode \| $?` + fi + done < $activeList +@@ -105,7 +105,7 @@ + # `which' may be a bit noisy, so we'll shush it. + dbusSend=`which dbus-send 2>/dev/null` + rc=$? +- if [ $rc = 0 ]; then ++ if [ $rc = 0 ] && [ `pidof dbus-daemon` ]; then + # NetworkManager 0.8.0 + $dbusSend --system --print-reply \ + --dest=org.freedesktop.NetworkManager \ +@@ -154,7 +154,7 @@ + # `which' may be a bit noisy, so we'll shush it. + dbusSend=`which dbus-send 2>/dev/null` + rc=$? +- if [ $rc = 0 ]; then ++ if [ $rc = 0 ] && [ `pidof dbus-daemon` ]; then + # NetworkManager 0.8.0 + $dbusSend --system --print-reply \ + --dest=org.freedesktop.NetworkManager \ +@@ -203,7 +203,7 @@ + + # XXX Are these really necessary? If so, we should have seen customer + # complaints by now. +- which ifup >/dev/null 2>&1 || Panic "ifup not in search path." ++# which ifup >/dev/null 2>&1 || Panic "ifup not in search path." + which ifconfig >/dev/null 2>&1 || Panic "ifconfig not in search path." + + case "$1" in |