Created
March 6, 2009 06:22
-
-
Save poppen/74788 to your computer and use it in GitHub Desktop.
a patch for /etc/vmware-tools/suspend-vm-default to enable suspend on FreeBSD 7.x
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- suspend-vm-default.orig 2009-03-06 14:12:19.000000000 +0900 | |
+++ suspend-vm-default 2009-03-06 14:14:01.000000000 +0900 | |
@@ -20,7 +20,7 @@ | |
# Release the IP if DHCP is used. | |
case "`uname -r`" in | |
-6.*) # 'PID dhclient: em0' => 'em0' | |
+[67].*) # 'PID dhclient: em0' => 'em0' | |
for intf in `pgrep -fl dhclient | cut -d" " -f3 | sort | uniq`; do | |
ifconfig "$intf" down | |
ifconfig "$intf" delete |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment