diff options
author | Carlo Landmeter <clandmeter@gmail.com> | 2011-02-14 09:40:24 +0000 |
---|---|---|
committer | Carlo Landmeter <clandmeter@gmail.com> | 2011-02-14 09:41:38 +0000 |
commit | 57b2d07c06af589eeeff448b4e20b08c9112c7b7 (patch) | |
tree | d2d98578abc886b15ef632279c0cbee13342118b /main/open-vm-tools-grsec/vmware-modules.initd | |
parent | 9ab6240126746715f08ffbeb7472cf9f00673fdf (diff) | |
download | aports-57b2d07c06af589eeeff448b4e20b08c9112c7b7.tar.bz2 aports-57b2d07c06af589eeeff448b4e20b08c9112c7b7.tar.xz |
main/open-vm-tools: move from testing to main including grsec modules
Diffstat (limited to 'main/open-vm-tools-grsec/vmware-modules.initd')
-rw-r--r-- | main/open-vm-tools-grsec/vmware-modules.initd | 25 |
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 0000000000..4977aee7c4 --- /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 $? +} + |