Only run transfused on mac platform

See #301

Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
Justin Cormack 2016-07-20 12:11:39 +01:00
parent ec9a4a5428
commit 093a81064b
2 changed files with 3 additions and 3 deletions

View File

@ -7,7 +7,7 @@ DEV=$(mount | grep '/dev/[sxv]da. on /var type')
[ $? -eq 0 ] && printf "✓ Drive mounted: $DEV\n" || printf "✗ No drive mounted\n"
INET=$(ifconfig eth0 2> /dev/null | grep 'inet addr')
[ $? -eq 0 ] && printf "✓ Network connected: $INET\n" || printf "✗ No network connection\n"
if [ ! -d /sys/bus/vmbus ]
if [ "$(mobyplatform)" = "mac" ]
then
FUSE=$(ps -eo args | grep '^/sbin/transfused')
[ $? -eq 0 ] && printf "✓ Process transfused running\n" || printf "✗ No transfused process\n"

View File

@ -4,7 +4,7 @@ description="fuse proxy server"
start()
{
[ -d /sys/bus/vmbus ] && exit 0
[ "$(mobyplatform)" != "mac" ] && exit 0
ebegin "Starting FUSE socket passthrough"
mkdir -p /host_docker_app
@ -28,7 +28,7 @@ start()
stop()
{
[ -d /sys/bus/vmbus ] && exit 0
[ "$(mobyplatform)" != "mac" ] && exit 0
ebegin "Stopping FUSE socket passthrough"
PIDFILE=/var/run/transfused.pid