Subject: Re: rc.d
To: None <tech-userlevel@netbsd.org>
From: Christos Zoulas <christos@zoulas.com>
List: tech-userlevel
Date: 03/15/2000 19:02:04
In article <x7n1o0p2q9.fsf@capsicum.wsrcc.com>,
Wolfgang Rupprecht <wolfgang@wsrcc.com> wrote:
>
>I can't believe that I am the only person here that keeps a half-dozen
>systems in sync with rdist.  Right now I have a few symlinks in /etc
>for files that absolutely need to be different.  These symlinks are
>the only thing not rdisted.  The rest of the per-machine
>individualization is limited to a few hosname-based if's stuck into
>the /etc/rc{,local} files.
>
>        if [ $(hostname) = foo ] then 
>                ...
>        fi
>

I use:
	if innetgr -h $hostname lpd-hosts; then
		lpd=YES
	else
		lpd=NO
	fi

And then control everything from the netgroup map.

christos