aboutsummaryrefslogblamecommitdiff
path: root/etc/rc.d/devd
blob: 8ce575a8cd354c4f3f8e687377dfbbdea143921e (plain) (tree)
1
2
3
4
5
6
7
8
9





               
                             
                                    
                          




                 
                       


                    




                                                                       
#!/bin/sh
#
# $FreeBSD$
#

# PROVIDE: devd
# REQUIRE: netif network_ipv6
# BEFORE: NETWORKING mountcritremote
# KEYWORD: nojail shutdown

. /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