diff options
| author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2011-03-16 11:52:13 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-03-18 23:20:43 +0000 |
| commit | ee78d54023ecc8423437398929644d663e85a8cc (patch) | |
| tree | 29766921c088ae23b44fec1e4282efa6465e3b73 /meta | |
| parent | bfdabe46df28c5af5d2c09bfad193704e1d5014a (diff) | |
| download | poky-ee78d54023ecc8423437398929644d663e85a8cc.tar.gz | |
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 <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
| -rw-r--r-- | meta/recipes-connectivity/nfs-utils/nfs-utils/nfsserver | 2 |
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 | |||
| 31 | # | 31 | # |
| 32 | # Default is 8 threads, value is settable between 1 and the truely | 32 | # Default is 8 threads, value is settable between 1 and the truely |
| 33 | # ridiculous 99 | 33 | # ridiculous 99 |
| 34 | test "$NFS_SERVERS" -gt 0 && test "$NFS_SERVERS" -lt 100 || NFS_SERVERS=8 | 34 | test "$NFS_SERVERS" != "" && test "$NFS_SERVERS" -gt 0 && test "$NFS_SERVERS" -lt 100 || NFS_SERVERS=8 |
| 35 | # | 35 | # |
| 36 | # The default state directory is /var/lib/nfs | 36 | # The default state directory is /var/lib/nfs |
| 37 | test -n "$NFS_STATEDIR" || NFS_STATEDIR=/var/lib/nfs | 37 | test -n "$NFS_STATEDIR" || NFS_STATEDIR=/var/lib/nfs |
