diff options
author | Vadim Kuznetsov <vadimk@gentoo.org> | 2011-11-15 15:13:16 +0000 |
---|---|---|
committer | Vadim Kuznetsov <vadimk@gentoo.org> | 2011-11-15 15:13:16 +0000 |
commit | 4bf66f3889554f3f354c25d35c4a6ccd42d30a84 (patch) | |
tree | b9b6a9fb0784c1f8bb4e8594e4000a104d44c6bb /app-emulation/open-vm-tools | |
parent | Stable for HPPA (bug #384237). (diff) | |
download | gentoo-2-4bf66f3889554f3f354c25d35c4a6ccd42d30a84.tar.gz gentoo-2-4bf66f3889554f3f354c25d35c4a6ccd42d30a84.tar.bz2 gentoo-2-4bf66f3889554f3f354c25d35c4a6ccd42d30a84.zip |
fixed default network script
(Portage version: 2.1.10.34/cvs/Linux x86_64)
Diffstat (limited to 'app-emulation/open-vm-tools')
-rw-r--r-- | app-emulation/open-vm-tools/ChangeLog | 5 | ||||
-rw-r--r-- | app-emulation/open-vm-tools/files/network | 8 |
2 files changed, 7 insertions, 6 deletions
diff --git a/app-emulation/open-vm-tools/ChangeLog b/app-emulation/open-vm-tools/ChangeLog index 47b855b664fc..8fe671fd3cc1 100644 --- a/app-emulation/open-vm-tools/ChangeLog +++ b/app-emulation/open-vm-tools/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for app-emulation/open-vm-tools # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/open-vm-tools/ChangeLog,v 1.55 2011/11/11 14:20:19 vadimk Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-emulation/open-vm-tools/ChangeLog,v 1.56 2011/11/15 15:13:16 vadimk Exp $ + + 15 Nov 2011; Vadim Kuznetsov <vadimk@gentoo.org> files/network: + fixed default network script *open-vm-tools-0.0.20111026.514583 (11 Nov 2011) diff --git a/app-emulation/open-vm-tools/files/network b/app-emulation/open-vm-tools/files/network index dabd18326ae3..3608455a9bc0 100644 --- a/app-emulation/open-vm-tools/files/network +++ b/app-emulation/open-vm-tools/files/network @@ -4,19 +4,17 @@ # net.eth0, net.eth1, network, wicd, NetworkManager service="net.eth0" -if [ $(rc-service -e net.eth0) ] +if ! rc-service -e ${service} then - service="net.eth0" -else service="network" fi case "$1" in suspend-vm) - rc-service $service stop + rc-service ${service} stop ;; resume-vm) - rc-service $service start + rc-service ${service} start ;; *) ;; |