1. Add missing semicolon between "warn" and "return" to make sure

the line continuation backslash doesn't cause "warn" to print "return".
2. Group "warn" and "return" together as the "return 1" should be
   performed only if the "kldload nfsclient" also failed (and not
   already if the "vfs.nfs" sysctl(8) check failed).

MFC after: 3 days
This commit is contained in:
Ralf S. Engelschall 2005-12-30 09:16:23 +00:00
parent 8fc934b8fa
commit b3d60bd52e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=153871

View File

@ -28,9 +28,9 @@ mountcritremote_precmd()
*mount_nfs*)
# Handle absent nfs client support
if ! sysctl vfs.nfs >/dev/null 2>&1; then
kldload nfsclient || warn 'nfs mount ' \
'requested, but no nfs client in kernel' \
return 1
kldload nfsclient || { warn 'nfs mount ' \
'requested, but no nfs client in kernel'; \
return 1; }
fi
;;
esac