mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-22 11:17:19 +00:00
6d60ce9310
critical remote systems. This lets us run commands from devd that aren't on the / partition. This also means we can remove some kludges from the networking startup that I added a while ago that caused other problems. There's still a race in starting devd that needs to be fixed in devd so that things present at boot will be configured by the time devd does daemon(). That race will be fixed later.
24 lines
362 B
Bash
24 lines
362 B
Bash
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
# PROVIDE: devd
|
|
# REQUIRE: NETWORKING
|
|
# BEFORE: mountcritremote
|
|
# KEYWORD: FreeBSD
|
|
|
|
. /etc/rc.subr
|
|
|
|
name="devd"
|
|
rcvar=`set_rcvar`
|
|
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
|