summaryrefslogtreecommitdiffstats
path: root/main/open-vm-tools-grsec/vmware-modules.initd
diff options
context:
space:
mode:
Diffstat (limited to 'main/open-vm-tools-grsec/vmware-modules.initd')
-rw-r--r--main/open-vm-tools-grsec/vmware-modules.initd25
1 files changed, 25 insertions, 0 deletions
diff --git a/main/open-vm-tools-grsec/vmware-modules.initd b/main/open-vm-tools-grsec/vmware-modules.initd
new file mode 100644
index 000000000..4977aee7c
--- /dev/null
+++ b/main/open-vm-tools-grsec/vmware-modules.initd
@@ -0,0 +1,25 @@
+#!/sbin/runscript
+
+MODULES="vmblock vmci vmhgfs vmsync vmxnet vsock"
+
+depend() {
+ before open-vm-tools
+}
+
+
+start() {
+ ebegin "Loading VMware kernel modules"
+ for mod in $MODULES; do
+ modprobe -q $mod
+ done
+ eend $?
+}
+
+stop() {
+ ebegin "Unloading VMware kernel modules"
+ for mod in $MODULES; do
+ rmmod $mod
+ done
+ eend $?
+}
+