PKGBUILDs/community/open-vm-tools/resume-vm-default.patch

50 lines
1.3 KiB
Diff
Raw Normal View History

2009-10-10 02:15:33 +00:00
--- resume-vm-default.org 2009-09-25 11:44:54.000000000 +0000
+++ resume-vm-default 2009-09-25 12:15:34.000000000 +0000
@@ -25,37 +25,6 @@
echo `date` ": Executing '$0'"
echo
-find_networking_script() {
- local script="error"
- for dir in "/etc/init.d" "/sbin/init.d" "/etc" "/etc/rc.d" ; do
- if [ -d "$dir/rc0.d" ] &&
- [ -d "$dir/rc1.d" ] &&
- [ -d "$dir/rc2.d" ] &&
- [ -d "$dir/rc3.d" ] &&
- [ -d "$dir/rc4.d" ] &&
- [ -d "$dir/rc5.d" ] &&
- [ -d "$dir/rc6.d" ]; then
-
- # Now find the appropriate networking script.
- if [ -d "$dir/init.d" ]; then
- if [ -x "$dir/init.d/network" ]; then
- script="$dir/init.d/network"
- elif [ -x "$dir/init.d/networking" ]; then
- script="$dir/init.d/networking"
- fi
- else
- if [ -x "$dir/network" ]; then
- script="$dir/network"
- elif [ -x "$dir/networking" ]; then
- script="$dir/networking"
- fi
- fi
- fi
- done
-
- echo "$script"
-}
-
save_active_NIC_list() {
ifconfig_path=`which ifconfig 2>/dev/null`
if [ $? ]; then
@@ -139,7 +108,7 @@
wakeNetworkManager
-network=`find_networking_script`
+network=/etc/rc.d/network
if [ "$network" != "error" ]; then
"$network" restart
# Continue even if the networking init script wasn't successful.