Merge pull request #313 from justincormack/hvtools-vmbus

Use platform to decide whether to run hv tools
This commit is contained in:
Justin Cormack 2016-07-21 09:53:18 +01:00 committed by GitHub
commit 6d3057c2cb
2 changed files with 5 additions and 5 deletions

View File

@ -11,7 +11,7 @@ depend()
start()
{
[ ! -d /sys/bus/vmbus ] && exit 0
[ "$(mobyplatform)" != "windows" ] && exit 0
ebegin "Starting Hyper-V Daemon: ${HV_DAEMON}"
@ -30,7 +30,7 @@ start()
stop()
{
[ ! -d /sys/bus/vmbus ] && exit 0
[ "$(mobyplatform)" != "windows" ] && exit 0
ebegin "Stopping Hyper-V Daemon: ${HV_DAEMON}"

View File

@ -9,7 +9,7 @@ depend()
start()
{
[ ! -d /sys/bus/vmbus ] && exit 0
[ "$(mobyplatform)" != "windows" ] && exit 0
ebegin "Starting Hyper-V Daemon: ${HV_DAEMON}"
@ -25,7 +25,7 @@ start()
stop()
{
[ ! -d /sys/bus/vmbus ] && exit 0
[ "$(mobyplatform)" != "windows" ] && exit 0
ebegin "Stopping Hyper-V Daemon: ${HV_DAEMON}"
@ -34,4 +34,4 @@ stop()
start-stop-daemon --stop --quiet --pidfile ${PIDFILE}
eend $? "Failed to stop ${HV_DAEMON}"
}
}