Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Nov 2005 10:17:29 +0000
From:      Yar Tikhiy <yar@FreeBSD.org>
To:        Maksim Yevmenkin <emax@FreeBSD.org>
Cc:        cvs-src@FreeBSD.org, src-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/etc/rc.d hcsecd sdpd
Message-ID:  <20051118101729.GA87399@freefall.freebsd.org>
In-Reply-To: <200511152036.jAFKaQMZ089811@repoman.freebsd.org>
References:  <200511152036.jAFKaQMZ089811@repoman.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Nov 15, 2005 at 08:36:26PM +0000, Maksim Yevmenkin wrote:
> emax        2005-11-15 20:36:26 UTC
> 
>   FreeBSD src repository
> 
>   Modified files:
>     etc/rc.d             hcsecd sdpd 
>   Log:
>   Revise hcsecd(8) and sdpd(8) rc.d scripts.
>   
>   - Have both scripts automatically kldload ng_btsocket(4). I did not want to
>     do it, but its easier for users and it seems other scripts do similar things;

You need not override the start method for such a hack.
Just put the kldload in the prestart method.
In addition, you could check if the module is loaded already.
See the pf* scripts for an example.

Yar



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