2002-11-09 02:45:53 -05:00
|
|
|
#!/bin/sh
|
|
|
|
|
#
|
|
|
|
|
# $FreeBSD$
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
# PROVIDE: devd
|
2006-09-21 10:29:32 -04:00
|
|
|
# REQUIRE: netif network_ipv6
|
2006-05-31 20:41:07 -04:00
|
|
|
# BEFORE: NETWORKING mountcritremote
|
2008-07-16 15:50:29 -04:00
|
|
|
# KEYWORD: nojail shutdown
|
2002-11-09 02:45:53 -05:00
|
|
|
|
|
|
|
|
. /etc/rc.subr
|
|
|
|
|
|
|
|
|
|
name="devd"
|
|
|
|
|
rcvar=`set_rcvar`
|
2005-10-28 12:55:38 -04:00
|
|
|
command="/sbin/${name}"
|
2002-11-09 02:45:53 -05:00
|
|
|
|
|
|
|
|
load_rc_config $name
|
|
|
|
|
run_rc_command "$1"
|
2002-11-29 19:40:53 -05: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
|