repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Expand PMF_FN_* macros.
[netbsd-mini2440.git]
/
etc
/
rc.d
/
dmesg
blob
6537982cf441f716dd7294e4aa4e0998bc3fac0a
1
#!/bin/sh
2
#
3
# $NetBSD: dmesg,v 1.8 2002/03/22 04:33:58 thorpej Exp $
4
#
5
6
# PROVIDE: dmesg
7
# REQUIRE: mountcritremote
8
# BEFORE: DAEMON
9
10
$_rc_subr_loaded
.
/
etc
/
rc.subr
11
12
name
=
"dmesg"
13
rcvar
=
$name
14
dmesg_file
=
"/var/run/dmesg.boot"
15
start_cmd
=
"do_dmesg"
16
stop_cmd
=
":"
17
18
do_dmesg
()
19
{
20
rm
-f
${dmesg_file}
21
(
umask
022
; /
sbin
/
dmesg
$rc_flags
>
${dmesg_file}
)
22
}
23
24
load_rc_config
$name
25
run_rc_command
"
$1
"