7 # REQUIRE: netif ldconfig
8 # BEFORE: NETWORKING mountcritremote
9 # KEYWORD: nojail shutdown
14 desc="Device state change daemon"
16 command="/sbin/${name}"
18 start_precmd=${name}_prestart
19 stop_precmd=find_pidfile
23 if get_pidfile_from_conf pid-file /etc/devd.conf; then
24 pidfile="$_pidfile_from_conf"
26 pidfile="/var/run/${name}.pid"
34 # If devd is disabled, turn it off in the kernel to avoid unnecessary
36 if ! checkyesno ${rcvar}; then
37 $SYSCTL hw.bus.devctl_queue=0