Home | History | Annotate | Line # | Download | only in rc.d
      1  1.1    lukem #!/bin/sh
      2  1.1    lukem #
      3  1.9  mycroft # $NetBSD: dmesg,v 1.9 2004/08/13 18:08:03 mycroft Exp $
      4  1.1    lukem #
      5  1.1    lukem 
      6  1.1    lukem # PROVIDE: dmesg
      7  1.4    lukem # REQUIRE: mountcritremote
      8  1.8  thorpej # BEFORE:  DAEMON
      9  1.1    lukem 
     10  1.9  mycroft $_rc_subr_loaded . /etc/rc.subr
     11  1.1    lukem 
     12  1.1    lukem name="dmesg"
     13  1.5    lukem rcvar=$name
     14  1.6    lukem dmesg_file="/var/run/dmesg.boot"
     15  1.2    lukem start_cmd="do_dmesg"
     16  1.1    lukem stop_cmd=":"
     17  1.2    lukem 
     18  1.2    lukem do_dmesg()
     19  1.2    lukem {
     20  1.6    lukem 	rm -f ${dmesg_file}
     21  1.7    lukem 	( umask 022 ; /sbin/dmesg $rc_flags > ${dmesg_file} )
     22  1.2    lukem }
     23  1.1    lukem 
     24  1.3    lukem load_rc_config $name
     25  1.1    lukem run_rc_command "$1"
     26