diff options
author | rse <rse@FreeBSD.org> | 2005-12-30 09:16:23 +0000 |
---|---|---|
committer | rse <rse@FreeBSD.org> | 2005-12-30 09:16:23 +0000 |
commit | f298c45195c71c554173214f6db5270bbd576ce2 (patch) | |
tree | 2fad37a5ae21d3f38a247ed971545e870c0f2360 /etc/rc.d | |
parent | 51a6864846dc4ff988de5860b0a9a441c4d201ac (diff) | |
download | FreeBSD-src-f298c45195c71c554173214f6db5270bbd576ce2.zip FreeBSD-src-f298c45195c71c554173214f6db5270bbd576ce2.tar.gz |
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
Diffstat (limited to 'etc/rc.d')
-rwxr-xr-x | etc/rc.d/mountcritremote | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/rc.d/mountcritremote b/etc/rc.d/mountcritremote index 1d532a4..7800406 100755 --- a/etc/rc.d/mountcritremote +++ b/etc/rc.d/mountcritremote @@ -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 |