summaryrefslogtreecommitdiff
path: root/meta
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2011-03-16 11:52:13 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-03-18 23:16:07 +0000
commit0f2debd9360abac54d3e44551af309f0bdde96e7 (patch)
tree5d8ef5c11446cd0c0f4de522a6b915f6dc03b3c2 /meta
parent578c938968857976f888f708f1f57cf862c7b3c4 (diff)
downloadopenembedded-core-0f2debd9360abac54d3e44551af309f0bdde96e7.tar.gz
openembedded-core-0f2debd9360abac54d3e44551af309f0bdde96e7.tar.bz2
openembedded-core-0f2debd9360abac54d3e44551af309f0bdde96e7.zip
nfs-utils: fix "sh: bad number" error on start/stop of nfsserver
Adds a test to avoid the "sh: bad number" error message during service start or stop of nfsserver when there is no NFS_SERVERS value set in /etc/default/nfsd. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-connectivity/nfs-utils/nfs-utils/nfsserver2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-connectivity/nfs-utils/nfs-utils/nfsserver b/meta/recipes-connectivity/nfs-utils/nfs-utils/nfsserver
index fe76c515e0..69c871855f 100644
--- a/meta/recipes-connectivity/nfs-utils/nfs-utils/nfsserver
+++ b/meta/recipes-connectivity/nfs-utils/nfs-utils/nfsserver
@@ -31,7 +31,7 @@ test -x "$NFS_NFSD" || exit 0
#
# Default is 8 threads, value is settable between 1 and the truely
# ridiculous 99
-test "$NFS_SERVERS" -gt 0 && test "$NFS_SERVERS" -lt 100 || NFS_SERVERS=8
+test "$NFS_SERVERS" != "" && test "$NFS_SERVERS" -gt 0 && test "$NFS_SERVERS" -lt 100 || NFS_SERVERS=8
#
# The default state directory is /var/lib/nfs
test -n "$NFS_STATEDIR" || NFS_STATEDIR=/var/lib/nfs