9 # KEYWORD: FreeBSD nojail
14 start_cmd='devfs_start'
19 if [ -n "$devfs_system_ruleset" -o -n "$devfs_set_rulesets" ]; then
21 if [ -n "$devfs_system_ruleset" ]; then
22 devfs_set_ruleset $devfs_system_ruleset /dev
23 devfs_apply_ruleset $devfs_system_ruleset /dev
25 if [ -n "$devfs_set_rulesets" ]; then
29 for _dir_set in $devfs_set_rulesets; do
32 devfs_set_ruleset $_set $_dir
33 devfs_apply_ruleset $_set $_dir
42 if [ -r /etc/devfs.conf ]; then
44 while read action device parameter; do
46 l*) if [ -c ${device} -a ! -e ${parameter} ]; then
47 ln -fs ${device} ${parameter}
50 o*) if [ -c ${device} ]; then
51 chown ${parameter} ${device}
54 p*) if [ -c ${device} ]; then
55 chmod ${parameter} ${device}
59 done < /etc/devfs.conf