Merge pull request #308 from justincormack/transfusedvmbus

Only run transfused on mac platform
This commit is contained in:
Rolf Neugebauer 2016-07-20 12:21:18 +01:00 committed by GitHub
commit 4127e24a17
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