mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-27 12:38:11 +00:00
Use platform to decide whether to run hv tools
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
parent
58625d3a1f
commit
9373862c07
@ -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