summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-emulation/open-vm-tools/files/network')
-rw-r--r--app-emulation/open-vm-tools/files/network8
1 files changed, 3 insertions, 5 deletions
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
;;
*)
;;