mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-22 18:41:37 +00:00
Merge pull request #308 from justincormack/transfusedvmbus
Only run transfused on mac platform
This commit is contained in:
commit
4127e24a17
@ -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"
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user