1cee37ddb01d3c43e35a6875a4e4812cb36ee793
[dragonfly.git] / etc / rc.d / devfs
1 #!/bin/sh
2 #
3
4 # PROVIDE: devfs
5 # REQUIRE: rcconf
6 # BEFORE: disks
7
8 . /etc/rc.subr
9
10 name="devfs"
11 load_rc_config $name
12 start_cmd="load_rules"
13 stop_cmd=":"
14
15 load_rules()
16 {
17         echo "Loading devfs rules"
18         set -- $devfs_config_files
19         for file; do
20                 [ -r $file ] && /sbin/devfsctl -a -f $file
21         done
22
23 }
24
25 load_rc_config $name
26 run_rc_command "$1"