Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 3 Sep 2006 23:51:31 -0300 (ADT)
From:      "Marc G. Fournier" <scrappy@freebsd.org>
To:        Antony Mawer <fbsd-arch@mawer.org>
Cc:        freebsd-arch@freebsd.org
Subject:   Re: BSDStats - What is involved ... ?
Message-ID:  <20060903235103.X82634@hub.org>
In-Reply-To: <44F24FC0.8010800@mawer.org>
References:  <20060825233420.V82634@hub.org> <20060827230002.GG1149@zaphod.nitro.dk> <20060827205909.K82634@hub.org> <44F23D7A.30604@mawer.org> <20060827221502.56976f1c.rnsanchez@gmail.com> <20060827225631.K82634@hub.org> <44F24FC0.8010800@mawer.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 28 Aug 2006, Antony Mawer wrote:

> On 28/08/2006 11:59 AM, Marc G. Fournier wrote:
>> On Sun, 27 Aug 2006, Ricardo Nabinger Sanchez wrote:
>>> That would be even easier if the dropping of 2 lines was carried out
>>> automatically.  I know people lazy enough to deinstall a port if they must
>>> do any post-config for themselves ("make deinstall" is easier than 
>>> thinking
>>> for a few seconds).
>> 
>> There are several things I want to work on when I get back onto a 'real 
>> network' next week ... Matt @ Dragonfly has asked for some 'network 
>> detection' code to be added, to check if there is even a network connected, 
>> before he'll add it to there base system ... and someone else suggested 
>> adding code similar to postfix's port to have *it* prompt and auto-add the 
>> appropriate lines to /etc/periodic.conf ...
>
> That may have been me :-) Here's a patch that implements something along 
> those lines... anyone care to review/comment on the attached patch? I've only 
> tested it very briefly but it appears to do the desired job...
>
> One thing that would be nice to do is to update any existing lines for the 
> stats, rather than always adding new lines if the user answers 'y'... 
> detecting existing lines could easily be done by sourcing the periodic.conf:
>
>    . /etc/periodic.conf
>
> at the top of the file, but I'm not sure the preferred way on how you'd 
> update any existng lines if changes were required... perhaps some 
> grep/sed-foo magic? :-)

Patch applied, and I added a yesno for actually running the script right 
then also ...




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