summaryrefslogtreecommitdiffstats
path: root/etc/rc.d
diff options
context:
space:
mode:
authorrse <rse@FreeBSD.org>2005-12-30 09:16:23 +0000
committerrse <rse@FreeBSD.org>2005-12-30 09:16:23 +0000
commitf298c45195c71c554173214f6db5270bbd576ce2 (patch)
tree2fad37a5ae21d3f38a247ed971545e870c0f2360 /etc/rc.d
parent51a6864846dc4ff988de5860b0a9a441c4d201ac (diff)
downloadFreeBSD-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-xetc/rc.d/mountcritremote6
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
OpenPOWER on IntegriCloud