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:
parent
8fc934b8fa
commit
b3d60bd52e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user