Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Nov 1999 21:47:39 -0800
From:      "William R. Somsky" <wrsomsky@halcyon.com>
To:        A.Leidinger@WJPServer.CS.Uni-SB.de
Cc:        archie@whistle.com, current@FreeBSD.ORG
Subject:   Re: "man" reads /etc/rc.conf?
Message-ID:  <19991118214739.A67672@gramarye.halcyon.com>
In-Reply-To: <199911101247.NAA01228@work.net.local>; from A.Leidinger@WJPServer.CS.Uni-SB.de on Wed, Nov 10, 1999 at 01:47:46PM %2B0100
References:  <199911092127.NAA35683@bubba.whistle.com> <199911101247.NAA01228@work.net.local>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Nov 10, 1999 at 01:47:46PM +0100, A.Leidinger@WJPServer.CS.Uni-SB.de wrote:
> 
> /usr/bin/apropos contains:
> ---snip---
> # If possible check global system configuration file for additional
> # man locales installed
> if [ -r /etc/defaults/rc.conf ] ; then
>         . /etc/defaults/rc.conf
> elif [ -r /etc/rc.conf ] ; then
>         . /etc/rc.conf
> fi
> ---snip---
> 

Hmm... aside from whether or not apropos should be reading in rc.conf,
isn't this code fragment doing the wrong thing in regards to the way
we have /etc/defaults/rc.conf and /etc/rc.conf setup nowadays?
Shouldn't it read _both_ if present?  Ie:

if [ -r /etc/defaults/rc.conf ] ; then
        . /etc/defaults/rc.conf
fi
if [ -r /etc/rc.conf ] ; then
        . /etc/rc.conf
fi


________________________________________________________________________
William R. Somsky                                   wrsomsky@halcyon.com
Physicist, Baritone, Guitarist           http://www.halcyon.com/wrsomsky


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




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