Skip to content

Instantly share code, notes, and snippets.

@poppen
Created March 6, 2009 06:22
Show Gist options
  • Save poppen/74788 to your computer and use it in GitHub Desktop.
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
--- 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