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>
20 lines
539 B
Bash
20 lines
539 B
Bash
#!/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
|