Subject: Re: /etc/default
To: None <current-users@NetBSD.ORG>
From: der Mouse <mouse@Collatz.McRCIM.McGill.EDU>
List: current-users
Date: 07/30/1995 13:47:35
>> If /etc/rc is a file, use it in the normal way.  No problems, the
>> BSD dudes are satisfied.  If /etc/rc is a directory, execute
>> /etc/rc/init....

> So if I'm distributing a software package that requires an rc
> modification during the install, I have to be able to handle both?
> Doesn't sound good to me.

No, not at all...or rather, yes-but-no.  You should check for /etc/rc
being a directory, and install yourself that way; if it's not a
directory, you're probably dealing with a hacker type like me, who
doesn't like scripts running around installing themselves on the sly,
and you should just punt to a human.  Something like

if [ ! -d /etc/rc ]; then
	echo "Please arrange to start $BASEDIR/daemon at boot time."
	echo "See $SRCDIR/docs/internals/INSTALL for full details."
	exit 0
fi
...code here to install boot-time stuff in /etc/rc/...

					der Mouse

			    mouse@collatz.mcrcim.mcgill.edu