From f298c45195c71c554173214f6db5270bbd576ce2 Mon Sep 17 00:00:00 2001 From: rse Date: Fri, 30 Dec 2005 09:16:23 +0000 Subject: 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 --- etc/rc.d/mountcritremote | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'etc/rc.d') 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 -- cgit v1.1