Add a way for rc.d/devfs to set more than just the system devfs up.
Yes, this means for stuff OTHER than jails, too. Example usage: #devfs_system_ruleset="root" devfs_set_rulesets="/dev=root /etc/namedb/dev=named_devfs"
This commit is contained in:
parent
648f147204
commit
962c54b39c
@ -16,10 +16,23 @@ stop_cmd=':'
|
||||
|
||||
devfs_start()
|
||||
{
|
||||
if [ -n "$devfs_system_ruleset" ]; then
|
||||
if [ -n "$devfs_system_ruleset" -o -n "$devfs_set_rulesets" ]; then
|
||||
devfs_init_rulesets
|
||||
devfs_set_ruleset $devfs_system_ruleset /dev
|
||||
devfs_apply_ruleset $devfs_system_ruleset /dev
|
||||
if [ -n "$devfs_system_ruleset" ]; then
|
||||
devfs_set_ruleset $devfs_system_ruleset /dev
|
||||
devfs_apply_ruleset $devfs_system_ruleset /dev
|
||||
fi
|
||||
if [ -n "$devfs_set_rulesets" ]; then
|
||||
local _dir_set
|
||||
local _dir
|
||||
local _set
|
||||
for _dir_set in $devfs_set_rulesets; do
|
||||
_dir=${_dir_set%=*}
|
||||
_set=${_dir_set#*=}
|
||||
devfs_set_ruleset $_set $_dir
|
||||
devfs_apply_ruleset $_set $_dir
|
||||
done
|
||||
fi
|
||||
fi
|
||||
read_devfs_conf
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user