open-vm-tools: Add new package open-vm-tools

Add new package,
open-vm-tools is Open Virtual Machine Tools for VMware guest OS

tested: OpenWrt master and 18.06.2 (x86_64) on ESXi 6.5, 6.7

Signed-off-by: Yuhei OKAWA <tochiro.srchack@gmail.com>
This commit is contained in:
Yuhei OKAWA
2019-02-25 12:02:55 +09:00
committed by Yousong Zhou
parent 7c0c22f6f7
commit 48eadd2ffd
17 changed files with 633 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
#!/bin/sh
#compatibility script for openvmtools
if [ "$1" == "-r" ]; then
/sbin/reboot
else
/sbin/poweroff
fi
+2
View File
@@ -0,0 +1,2 @@
[guestinfo]
disable-perf-mon=1
+13
View File
@@ -0,0 +1,13 @@
#!/bin/sh /etc/rc.common
START=10
USE_PROCD=1
PROG=/bin/vmtoolsd
start_service() {
procd_open_instance
procd_set_param command "$PROG"
procd_set_param respawn
procd_close_instance
}
@@ -0,0 +1,20 @@
#!/bin/sh
if [ "$DEVTYPE" = disk ]; then
if [ "$ACTION" = add ]; then
vendor=`cat /sys/block/$DEVNAME/device/vendor`
case "$vendor" in
"VMware"*)
model=`cat /sys/block/$DEVNAME/device/model`
case "$model" in
"Virtual disk"*)
echo 180 > /sys/block/$DEVNAME/device/timeout
;;
"VMware Virtual S")
echo 180 > /sys/block/$DEVNAME/device/timeout
;;
esac
;;
esac
fi
fi