repo.or.cz
/
dragonfly.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
sbin/*hammer: Use typedef'd for struct zone_stat*
[dragonfly.git]
/
etc
/
rc.d
/
devfs
blob
b13f0a4f9bdbdbf0ed8266b0ec6df5e6abea7631
1
#!/bin/sh
2
#
3
# Load default devfs(5) rules.
4
#
5
6
# PROVIDE: devfs
7
# REQUIRE: rcconf
8
# BEFORE: disks initrandom
9
10
.
/
etc
/
rc.subr
11
12
name
=
"devfs"
13
14
load_rc_config
$name
15
dummy_rc_command
"
$1
"
16
17
load_rules
()
18
{
19
echo -n
"Loading devfs rules:"
20
set --
$devfs_config_files
21
for
file
;
do
22
[
-r
$file
] &&
echo -n
"
$file
"
&& /
sbin
/
devfsctl
-a -f
$file
23
done
24
echo
'.'
25
}
26
27
case
"
$1
"
in
28
*
start
)
29
load_rules
30
;;
31
esac