Subject: Re: rc.d scripts and there variable settings (was: CVS commit: sharesrc/share/man/man5)
To: None <tech-pkg@netbsd.org>
From: Stoned Elipot <seb@script.jussieu.fr>
List: tech-pkg
Date: 09/06/2002 11:02:11
On Thu, Sep 05, 2002 at 07:07:20PM +0700, Robert Elz wrote:
> if [ -f /etc/rc.subr ]

This is not really optimum as older netbsd releases do have a /etc/rc.subr but
do not have lukem's /etc/rc.d framework.

pkgsrc/security/openssh/files/sshd.sh IMHO has a better way:

if [ -f /etc/rc.subr -a -f /etc/rc.conf -a -d /etc/rc.d -a -f /etc/rc.d/DAEMON ]
...

Cheers, Stoned.-