mirror of
https://github.com/novatiq/packages.git
synced 2026-04-29 23:18:42 +01:00
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:
committed by
Yousong Zhou
parent
7c0c22f6f7
commit
48eadd2ffd
@@ -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
|
||||
Reference in New Issue
Block a user