Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 May 2000 23:13:58 -0700
From:      Doug Barton <DougB@yahoo-inc.com>
To:        Bruce Evans <bde@zeta.org.au>
Cc:        Jeroen Ruigrok van der Werven <asmodai@FreeBSD.ORG>, cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG
Subject:   Re: cvs commit: src/etc rc
Message-ID:  <39320AA6.B3C70A9B@yahoo-inc.com>
References:  <Pine.BSF.4.21.0005291450550.1464-100000@besplex.bde.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Bruce Evans wrote:
> 
> On Sun, 28 May 2000, Doug Barton wrote:
> 
> > Bruce Evans wrote:
> >
> > > > To: doug@gorean.com
> >
> >       I'm @gorean.org. I'd never dis' you like that Bruce. :)  You are of
> 
> Oops.  There is a gorean.com, and it seems to have blackholed the mail.

	Yeah, I hate when they do that. 

> I think this can be simplified to
> 
>     if [ "`mount -d -a -t nfs`" != "" ]; then
>     ...
> 
> (since -t nfs already filters out everything that doesn't match *mount_nfs*).

	That's definitely cleaner, but it adds an instance of 'test' that I'd
prefer were case, since case is a builtin. Also, testing for the
presence of mount_nfs instead of the absence protects us against
something changing in the future. Losing the temp variable is a good
idea though, how about:

case "`mount -d -a -t nfs`" in
*mount_nfs*)
        echo -n "Mounting NFS file systems"
        mount -a -t nfs
        echo .
        ;;
esac

I'll reboot with that asap and let y'all know...I can't do it right now
because I'm monitoring some stuff at work.

Doug
-- 
        "Live free or die"
		- State motto of my ancestral homeland, New Hampshire

	Do YOU Yahoo!?


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?39320AA6.B3C70A9B>