mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-27 20:48:11 +00:00
Merge pull request #313 from justincormack/hvtools-vmbus
Use platform to decide whether to run hv tools
This commit is contained in:
commit
6d3057c2cb
@ -11,7 +11,7 @@ depend()
|
|||||||
|
|
||||||
start()
|
start()
|
||||||
{
|
{
|
||||||
[ ! -d /sys/bus/vmbus ] && exit 0
|
[ "$(mobyplatform)" != "windows" ] && exit 0
|
||||||
|
|
||||||
ebegin "Starting Hyper-V Daemon: ${HV_DAEMON}"
|
ebegin "Starting Hyper-V Daemon: ${HV_DAEMON}"
|
||||||
|
|
||||||
@ -30,7 +30,7 @@ start()
|
|||||||
|
|
||||||
stop()
|
stop()
|
||||||
{
|
{
|
||||||
[ ! -d /sys/bus/vmbus ] && exit 0
|
[ "$(mobyplatform)" != "windows" ] && exit 0
|
||||||
|
|
||||||
ebegin "Stopping Hyper-V Daemon: ${HV_DAEMON}"
|
ebegin "Stopping Hyper-V Daemon: ${HV_DAEMON}"
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@ depend()
|
|||||||
|
|
||||||
start()
|
start()
|
||||||
{
|
{
|
||||||
[ ! -d /sys/bus/vmbus ] && exit 0
|
[ "$(mobyplatform)" != "windows" ] && exit 0
|
||||||
|
|
||||||
ebegin "Starting Hyper-V Daemon: ${HV_DAEMON}"
|
ebegin "Starting Hyper-V Daemon: ${HV_DAEMON}"
|
||||||
|
|
||||||
@ -25,7 +25,7 @@ start()
|
|||||||
|
|
||||||
stop()
|
stop()
|
||||||
{
|
{
|
||||||
[ ! -d /sys/bus/vmbus ] && exit 0
|
[ "$(mobyplatform)" != "windows" ] && exit 0
|
||||||
|
|
||||||
ebegin "Stopping Hyper-V Daemon: ${HV_DAEMON}"
|
ebegin "Stopping Hyper-V Daemon: ${HV_DAEMON}"
|
||||||
|
|
||||||
@ -34,4 +34,4 @@ stop()
|
|||||||
start-stop-daemon --stop --quiet --pidfile ${PIDFILE}
|
start-stop-daemon --stop --quiet --pidfile ${PIDFILE}
|
||||||
|
|
||||||
eend $? "Failed to stop ${HV_DAEMON}"
|
eend $? "Failed to stop ${HV_DAEMON}"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user