aboutsummaryrefslogtreecommitdiffstats
path: root/main/open-vm-tools-vserver/vmware-modules.initd
blob: 942f4504e63fb954ce3add8f89d3546bda96e040 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/sbin/runscript

MODULES="vmblock vmci vmhgfs vmsync vmxnet vsock vmw_balloon"

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 $?
}