Commit | Line | Data |
---|---|---|
b374f6d5 MS |
1 | #!/bin/sh |
2 | # | |
5ee7b598 SW |
3 | # Load default devfs(5) rules. |
4 | # | |
b374f6d5 MS |
5 | |
6 | # PROVIDE: devfs | |
7 | # REQUIRE: rcconf | |
5ee7b598 | 8 | # BEFORE: disks initrandom |
b374f6d5 MS |
9 | |
10 | . /etc/rc.subr | |
11 | ||
12 | name="devfs" | |
5ee7b598 | 13 | |
b374f6d5 | 14 | load_rc_config $name |
5ee7b598 | 15 | dummy_rc_command "$1" |
b374f6d5 MS |
16 | |
17 | load_rules() | |
18 | { | |
5ee7b598 | 19 | echo -n "Loading devfs rules:" |
b374f6d5 MS |
20 | set -- $devfs_config_files |
21 | for file; do | |
5ee7b598 | 22 | [ -r $file ] && echo -n " $file" && /sbin/devfsctl -a -f $file |
b374f6d5 | 23 | done |
b374f6d5 MS |
24 | } |
25 | ||
5ee7b598 SW |
26 | case "$1" in |
27 | *start) | |
28 | load_rules | |
29 | ;; | |
30 | esac |