Subject: Re: dmesg not going to /var/run/dmesg.boot
To: netbsd alpha <netbsd_alpha@yahoo.com>
From: David Brownlee <abs@netbsd.org>
List: port-alpha
Date: 10/04/2000 18:37:13
	Random thought - does '/etc/rc.d/dmesg start' work?

                David/absolute
			       -- www.netbsd.org: A pmap for every occasion --


On Wed, 4 Oct 2000, netbsd alpha wrote:

> i'm running current as off 10/3 on PWS 500au. when i
> upgraded to -current, i no longer see the output of
> dmesg in /var/run/dmesg.boot.
> 
> # grep dmesg /etc/defaults/rc.conf
> dmesg=YES               dmesg_flags=""          #
> write /var/run/dmesg.boot
> 
> that shows that the flag is set in
> /etc/defaults/rc.conf
> 
> and i've not override it in 
> # grep dmesg /etc/rc.conf
> #
> 
> the file does exist in
> # ls /etc/rc.d/dmesg
> /etc/rc.d/dmesg
> 
> # cat /etc/rc.d/dmesg
> #!/bin/sh
> #
> # $NetBSD: dmesg,v 1.3.4.2 2000/10/02 01:09:23 lukem
> Exp $
> #
> 
> # PROVIDE: dmesg
> # REQUIRE: mountcritremote
> 
> . /etc/rc.subr
> 
> name="dmesg"
> rcvar=$name
> start_cmd="do_dmesg"
> stop_cmd=":"
> 
> do_dmesg()
> {
>         rm -f /var/run/dmesg.boot
>         dmesg $dmesg_flags > /var/run/dmesg.boot
> }
> 
> load_rc_config $name
> run_rc_command "$1"
> #
> 
> if i run the command manually:
> 
> dmesg $dmesg_flags > /var/run/dmesg.boot
> 
> then it shows up in /var/run/
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Photos - 35mm Quality Prints, Now Get 15 Free!
> http://photos.yahoo.com/
>