rc: ensure that vfs.mounts.nfs check works without NFS
authornaddy <naddy@openbsd.org>
Tue, 9 Feb 2021 21:42:04 +0000 (21:42 +0000)
committernaddy <naddy@openbsd.org>
Tue, 9 Feb 2021 21:42:04 +0000 (21:42 +0000)
commit0049eb19c27a711bf1a21907c9638be7c5234993
tree4c5c8f8a5b9c45502cfa528d9b00e5728b87c4a4
parenta60f62668082c812f344ac31ff5687e4e18855dc
rc: ensure that vfs.mounts.nfs check works without NFS

If NFS isn't compiled into the kernel, sysctl -n vfs.mounts.nfs
will produce no numerical output.  Make sure that we always have
a valid arithmetic expression.

Reported by and ok patrick@
etc/rc