]> CyberLeo.Net >> Repos - FreeBSD/releng/8.1.git/blob - etc/rc.d/devd
Copy stable/8 to releng/8.1 in preparation for 8.1-RC1.
[FreeBSD/releng/8.1.git] / etc / rc.d / devd
1 #!/bin/sh
2 #
3 # $FreeBSD$
4 #
5
6 # PROVIDE: devd
7 # REQUIRE: netif network_ipv6
8 # BEFORE: NETWORKING mountcritremote
9 # KEYWORD: nojail shutdown
10
11 . /etc/rc.subr
12
13 name="devd"
14 rcvar=`set_rcvar`
15 command="/sbin/${name}"
16
17 load_rc_config $name
18 run_rc_command "$1"
19
20 # If devd is disabled, turn it off in the kernel to avoid memory leaks.
21 if ! checkyesno ${rcvar}; then
22     sysctl hw.bus.devctl_disable=1
23 fi