freebsd-skq/etc/rc.d/devd
Brooks Davis cf81114dc4 network_ipv6 also does some interface configuration so require it to run
before starting devd so they don't trip over each other.

PR:		conf/103428
2006-09-21 14:29:32 +00:00

24 lines
383 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: devd
# REQUIRE: netif network_ipv6
# BEFORE: NETWORKING mountcritremote
# KEYWORD: nojail
. /etc/rc.subr
name="devd"
rcvar=`set_rcvar`
command="/sbin/${name}"
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