OBS-URL: https://build.opensuse.org/package/show/Virtualization:VMware/open-vm-tools?expand=0&rev=182
This commit is contained in:
parent
2e44e677ca
commit
dc3e66c821
19
vmtoolsd
19
vmtoolsd
@ -40,6 +40,21 @@ test -x $VMTOOLSD_BIN || { echo "$VMTOOLSD_BIN not installed";
|
||||
if [ "$1" = "stop" ]; then exit 0;
|
||||
else exit 5; fi; }
|
||||
|
||||
# The kernel module for the balloon driver changes its name in different kernel versions
|
||||
KERNEL_MICRO=$(uname -r | awk -F- '{print $1}' | sed 's,2.6.,,')
|
||||
case $KERNEL_MICRO in
|
||||
36)
|
||||
VMBALLOON=vmmemctl
|
||||
;;
|
||||
37)
|
||||
VMBALLOON=vmware_balloon
|
||||
;;
|
||||
*)
|
||||
VMBALLOON=vmw_balloon
|
||||
;;
|
||||
esac
|
||||
|
||||
|
||||
. /etc/rc.status
|
||||
|
||||
# Reset status of this service
|
||||
@ -69,7 +84,7 @@ case "$1" in
|
||||
fi
|
||||
modprobe vmblock
|
||||
mount -t vmblock none /proc/fs/vmblock/mountPoint
|
||||
modprobe vmmemctl
|
||||
modprobe $VMBALLOON
|
||||
modprobe vmsync
|
||||
## Start daemon with startproc(8). If this fails
|
||||
## the return value is set appropriately by startproc.
|
||||
@ -91,7 +106,7 @@ case "$1" in
|
||||
umount /proc/fs/vmblock/mountPoint || :
|
||||
modprobe -r vmblock || :
|
||||
modprobe -r vmsync || :
|
||||
modprobe -r vmmemctl || :
|
||||
modprobe -r $VMBALLOON || :
|
||||
|
||||
# Remember status and be verbose
|
||||
rc_status -v
|
||||
|
Loading…
Reference in New Issue
Block a user