This repository has been archived by the owner on Jan 1, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #747 from frapposelli/vmware-support
Proper VMware support
- Loading branch information
Showing
7 changed files
with
129 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -82,3 +82,6 @@ fi | |
if modprobe hv_utils &> /dev/null; then | ||
/usr/sbin/hv_kvp_daemon | ||
fi | ||
|
||
# Launch vmware-tools | ||
/etc/rc.d/vmtoolsd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/sh | ||
|
||
# vmtoolsd will start only if it can connect to the vmx backdoor, will | ||
# quit immediately if not running on a VMware-based system. | ||
/usr/local/bin/vmtoolsd --background /var/run/vmtoolsd.pid |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#!/bin/sh | ||
|
||
usage() | ||
{ | ||
echo 'Usage: shutdown [-rh] time | ||
-r: reboot after shutdown. | ||
-h: halt after shutdown. | ||
** the "time" argument is mandatory! (try "now") **' >&2 | ||
exit 1 | ||
} | ||
|
||
case $1 in | ||
-r) CMD="/bin/busybox reboot" | ||
;; | ||
-h) CMD="/bin/busybox poweroff" | ||
;; | ||
*) usage | ||
;; | ||
esac | ||
|
||
shift | ||
|
||
case $1 in | ||
now|+0) DELAY="" | ||
;; | ||
+[0-9]*) DELAY=$(($1 * 60)) | ||
;; | ||
*) usage | ||
;; | ||
esac | ||
|
||
${CMD}${DELAY:+ -d $DELAY} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/sh | ||
# just to make open-vm-tools happy, nad fake output | ||
# of lsb_release -sd | ||
. /etc/os-release | ||
echo $PRETTY_NAME | ||
|
||
exit 0 | ||
|