From owner-freebsd-current Thu Oct 24 20:45:50 1996 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id UAA17591 for current-outgoing; Thu, 24 Oct 1996 20:45:50 -0700 (PDT) Received: from dog.farm.org (dog.farm.org [207.111.140.47]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id UAA17574 for ; Thu, 24 Oct 1996 20:45:37 -0700 (PDT) Received: (from dk@localhost) by dog.farm.org (8.7.5/dk#3) id UAA18657; Thu, 24 Oct 1996 20:47:26 -0700 (PDT) Date: Thu, 24 Oct 1996 20:47:26 -0700 (PDT) From: Dmitry Kohmanyuk Message-Id: <199610250347.UAA18657@dog.farm.org> To: mark@grondar.za (Mark Murray) Cc: freebsd-current@freebsd.org Subject: Re: /etc/rc* stuff Newsgroups: cs-monolit.gated.lists.freebsd.current Organization: FARM Computing Association Reply-To: dk+@ua.net X-Newsreader: TIN [version 1.2 PL2] Sender: owner-current@freebsd.org X-Loop: FreeBSD.org Precedence: bulk In article <199610241748.TAA13931@grumble.grondar.za> you wrote: > I wrote that rndcontrol(8) program, so I'll fix it. It is a little too > chatty by default. That will fix the extra `echo "."' the main problem with rndcontrol (or, rather, with its usage - the program itself is very straightforward) is that every time I add or change my PCI cards I have to track IRQs. Hmm, maybe a little awk wrapper around vmstat -i output would help?? (yes, I know this is a kludge); rand_devices="psm0 ed0 zzz" for dev in ${rand_devices}; do echo "checking irq for device $dev" vmstat -i | awk '$1 == dev { print $2 }' dev=$dev | sed 's/irq//; s/^/rndcontrol -s /' | sh done > M > Bill Paul wrote: > > Just a couple of small nits: > > > > - At the very end of /etc/rc.i386, we have this: > > > > [begin snippage] > > echo '.' > > > > # interrupts for /dev/random device > > if [ "X${rand_irqs}" != X"NO" ] ; then > > echo -n 'entropy source: ' > > rndcontrol ${rand_irqs} > > fi > > > > echo '.' # probably bogus > > [end snippage] [...] -- Don't take life too seriously. You'll never get out of it alive.