mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 07:28:39 +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,8 @@
|
||||
#!/bin/sh
|
||||
#compatibility script for openvmtools
|
||||
|
||||
if [ "$1" == "-r" ]; then
|
||||
/sbin/reboot
|
||||
else
|
||||
/sbin/poweroff
|
||||
fi
|
||||
@@ -0,0 +1,2 @@
|
||||
[guestinfo]
|
||||
disable-perf-mon=1
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user