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
@@ -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