MFC r1.13:

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).
This commit is contained in:
rse 2006-01-08 09:21:53 +00:00
parent e40bea7903
commit 15e803bc3f

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