Two fixes for devd:

1) Move devd to the start of the head of the boot process rather than the end.
2) Disable devctl if devd is disabled.
This commit is contained in:
Warner Losh 2002-11-30 00:40:53 +00:00
parent b8001d2f15
commit 406259c133
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=107397

View file

@ -4,7 +4,7 @@
#
# PROVIDE: devd
# REQUIRE: devfs
# BEFORE: disks
# KEYWORD: FreeBSD
. /etc/rc.subr
@ -15,3 +15,8 @@ command="/sbin/devd"
load_rc_config $name
run_rc_command "$1"
# If devd is disabled, turn it off in the kernel to avoid memory leaks.
if ! checkyesno ${rcvar}; then
sysctl hw.bus.devctl_disable=1
fi