2002-11-09 07:45:53 +00:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
# PROVIDE: devd
|
2003-02-12 04:22:40 +00:00
|
|
|
# REQUIRE: NETWORKING
|
|
|
|
# BEFORE: mountcritremote
|
2004-10-07 13:55:26 +00:00
|
|
|
# KEYWORD: nojail
|
2002-11-09 07:45:53 +00:00
|
|
|
|
|
|
|
. /etc/rc.subr
|
|
|
|
|
|
|
|
name="devd"
|
|
|
|
rcvar=`set_rcvar`
|
|
|
|
command="/sbin/devd"
|
|
|
|
|
|
|
|
load_rc_config $name
|
|
|
|
run_rc_command "$1"
|
2002-11-30 00:40:53 +00:00
|
|
|
|
|
|
|
# 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
|