summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/runqemu-nfs17
1 files changed, 17 insertions, 0 deletions
diff --git a/scripts/runqemu-nfs b/scripts/runqemu-nfs
index bccbc4c5c8..79b41ca79a 100755
--- a/scripts/runqemu-nfs
+++ b/scripts/runqemu-nfs
@@ -65,6 +65,23 @@ fi
65PSEUDO_LOCALSTATEDIR=~/.poky-sdk/pseudo 65PSEUDO_LOCALSTATEDIR=~/.poky-sdk/pseudo
66export PSEUDO_LOCALSTATEDIR 66export PSEUDO_LOCALSTATEDIR
67 67
68RPC=`which rpcbind`
69if [ "x$RPC" = "x" ]; then
70 RPC=`which portmap`
71 if [ "x$RPC" = "x" ]; then
72 echo "You need rpcbind or portmap installed and running to run the"
73 echo "userspace NFS server."
74 exit 1
75 fi
76fi
77
78rpcbind_running=`ps ax | grep rpcbind | wc -l`
79portmap_running=`ps ax | grep portbind | wc -l`
80if [ rpcbind_running == 1 -a portmap_running == 1 ]; then
81 echo "You need to be running either rpcbind or portmap to continue"
82 exit 1
83fi
84
68# Start the userspace NFS server 85# Start the userspace NFS server
69echo "poky-export-rootfs restart $SDK_ROOTFS_DIR" 86echo "poky-export-rootfs restart $SDK_ROOTFS_DIR"
70poky-export-rootfs restart $SDK_ROOTFS_DIR 87poky-export-rootfs restart $SDK_ROOTFS_DIR