summaryrefslogtreecommitdiffstats
path: root/testing/open-vm-tools/suspend-vm-default.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2010-07-08 09:45:25 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2010-07-08 09:45:25 +0000
commit836efa79e6397dda69543c7b553e33f5bcf2d615 (patch)
tree4b72cd280d512f4e3af8ffba58cadcd27566ff9d /testing/open-vm-tools/suspend-vm-default.patch
parent38c4ccd875603ddc883e6bdb30f8e062f3ac1734 (diff)
downloadaports-836efa79e6397dda69543c7b553e33f5bcf2d615.tar.bz2
aports-836efa79e6397dda69543c7b553e33f5bcf2d615.tar.xz
testing/open-vm-tools: new aport
The Open Virtual Machine Tools are the open source implementation of VMware Tools. http://open-vm-tools.sourceforge.net/
Diffstat (limited to 'testing/open-vm-tools/suspend-vm-default.patch')
-rw-r--r--testing/open-vm-tools/suspend-vm-default.patch49
1 files changed, 49 insertions, 0 deletions
diff --git a/testing/open-vm-tools/suspend-vm-default.patch b/testing/open-vm-tools/suspend-vm-default.patch
new file mode 100644
index 000000000..38f8ae71d
--- /dev/null
+++ b/testing/open-vm-tools/suspend-vm-default.patch
@@ -0,0 +1,49 @@
+--- a/scripts/linux/suspend-vm-default.org 2009-05-13 15:02:03.000000000 +0400
++++ b/scripts/linux/suspend-vm-default 2009-05-13 15:05:18.394228810 +0400
+@@ -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
+@@ -76,7 +45,7 @@
+
+ save_active_NIC_list
+
+-network=`find_networking_script`
++network=/etc/init.d/networking
+ if [ "$network" != "error" ]; then
+ "$network" stop
+ # If the network is down, this may fail but that's not a good reason