mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-22 09:43:47 +00:00
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:
parent
b8001d2f15
commit
406259c133
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=107397
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue