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:
parent
e40bea7903
commit
15e803bc3f
@ -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…
x
Reference in New Issue
Block a user