Improve the customizeiso step to allow restarts
[dragonfly.git] / etc / rc.d / dmesg
blobfee4ee04e41921cfc2a92fb26d5cf930989ff7ee
1 #!/bin/sh
3 # $NetBSD: dmesg,v 1.8 2002/03/22 04:33:58 thorpej Exp $
4 # $FreeBSD: src/etc/rc.d/dmesg,v 1.2 2002/06/13 22:14:36 gordon Exp $
5 # $DragonFly: src/etc/rc.d/dmesg,v 1.3 2005/11/19 21:47:32 swildner Exp $
8 # PROVIDE: dmesg
9 # REQUIRE: mountcritremote
10 # BEFORE: DAEMON
11 # KEYWORD: Daemon
13 . /etc/rc.subr
15 name="dmesg"
16 rcvar=`set_rcvar`
17 dmesg_file="/var/run/dmesg.boot"
18 start_cmd="do_dmesg"
19 stop_cmd=":"
21 do_dmesg()
23 rm -f ${dmesg_file}
24 ( umask 022 ; /sbin/dmesg $rc_flags > ${dmesg_file} )
27 load_rc_config $name
28 run_rc_command "$1"