From 07f7dc47ecf87c186062181447edaa268a092801 Mon Sep 17 00:00:00 2001 From: Paul Eggleton Date: Wed, 16 Mar 2011 11:52:13 +0000 Subject: 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. (From OE-Core rev: 0f2debd9360abac54d3e44551af309f0bdde96e7) Signed-off-by: Paul Eggleton Signed-off-by: Richard Purdie --- meta/recipes-connectivity/nfs-utils/nfs-utils/nfsserver | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'meta') 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 -- cgit v1.2.3-54-g00ecf