summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabio Rossi <rossi.f@inwind.it>2017-03-07 23:20:32 +0100
committerFabio Rossi <rossi.f@inwind.it>2017-03-07 23:20:32 +0100
commit36bad7811b7513361bd494fed0949787413826ab (patch)
tree6a43a0b0adfbfc8d515dffc2dbfe136d32f07ad6 /app-emulation
parentLast version doesn't start anymore without bundled libz.so in unbundled condi... (diff)
downloadvmware-36bad7811b7513361bd494fed0949787413826ab.tar.gz
vmware-36bad7811b7513361bd494fed0949787413826ab.tar.bz2
vmware-36bad7811b7513361bd494fed0949787413826ab.zip
app-emulation/vmware-player: add missing rc file
This fixes https://github.com/gentoo/vmware/issues/30
Diffstat (limited to 'app-emulation')
-rw-r--r--app-emulation/vmware-player/files/vmware-12.5.rc44
1 files changed, 44 insertions, 0 deletions
diff --git a/app-emulation/vmware-player/files/vmware-12.5.rc b/app-emulation/vmware-player/files/vmware-12.5.rc
new file mode 100644
index 0000000..14ff124
--- /dev/null
+++ b/app-emulation/vmware-player/files/vmware-12.5.rc
@@ -0,0 +1,44 @@
+#!/sbin/openrc-run
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+depend() {
+ need localmount
+ use net
+}
+
+start() {
+ ebegin Starting VMware USB Arbitrator
+ #start-stop-daemon --start --exec @@BINDIR@@/vmware-usbarbitrator
+ @@BINDIR@@/vmware-usbarbitrator
+ eend $?
+ ebegin Starting VMware services
+
+ # quiet for vmci because it may not be there
+ modprobe -vq vmci || modprobe -v vmw_vmci
+ eend $?
+
+ # vmci or vmw_vmci was loaded by the previous modprobe
+ # no need to do it here
+ modprobe -av vmmon vsock vmblock vmnet
+ eend $?
+ @@BINDIR@@/vmware-networks --start
+ eend $?
+}
+
+stop() {
+ ebegin Stopping VMware USB Arbitrator
+ #start-stop-daemon --stop --exec @@BINDIR@@/vmware-usbarbitrator
+ killall --wait @@BINDIR@@/vmware-usbarbitrator
+ eend $?
+ @@BINDIR@@/vmware-networks --stop
+ eend $?
+ ebegin Stopping VMware services
+ modprobe -rv vsock vmmon vmblock vmnet
+ eend $?
+
+ # quiet for vmci because it may not be there
+ modprobe -rvq vmci || modprobe -rv vmw_vmci
+ eend $?
+}