devd revision 216744
1#!/bin/sh
2#
3# $FreeBSD: head/etc/rc.d/devd 216744 2010-12-27 22:52:47Z dougb $
4#
5
6# PROVIDE: devd
7# REQUIRE: netif
8# BEFORE: NETWORKING mountcritremote
9# KEYWORD: nojail shutdown
10
11. /etc/rc.subr
12
13name="devd"
14rcvar=`set_rcvar`
15command="/sbin/${name}"
16pidfile=/var/run/${name}.pid
17
18start_precmd=${name}_prestart
19
20devd_prestart ()
21{
22	# If devd is disabled, turn it off in the kernel to avoid memory leaks.
23	if ! checkyesno ${rcvar}; then
24	    $SYSCTL hw.bus.devctl_disable=1
25	fi
26}
27
28load_rc_config $name
29run_rc_command "$1"
30