Use mobyplatform not vmbus for tap-vsock

Plus cleanup for less indentation. No functional change.

Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
Justin Cormack
2016-07-20 12:30:59 +01:00
parent 996cab9f17
commit c475121074
2 changed files with 18 additions and 25 deletions

View File

@@ -12,7 +12,7 @@ then
FUSE=$(ps -eo args | grep '^/sbin/transfused')
[ $? -eq 0 ] && printf "✓ Process transfused running\n" || printf "✗ No transfused process\n"
fi
if [ -d /sys/bus/vmbus ]
if [ [ "$(mobyplatform)" = "windows" ] ]
then
TAPVS=$(ps -eo args | grep '^/sbin/tap-vsockd')
[ $? -eq 0 ] && printf "✓ Process tap-vsockd running\n" || printf "✗ No tap-vsockd process\n"