freebsd-nq/etc/rc.d/devd
Warner Losh 6d60ce9310 Start devd after the networking stuff, but before we mount the
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.
2003-02-12 04:22:40 +00:00

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