installer: Re-add the TEST_DEV command which was removed accidentally.
[dragonfly.git] / etc / rc.d / devd
blobabecadd8292eb4b8a948fe824a50b4eca5ffc24e
1 #!/bin/sh
3 # $FreeBSD: src/etc/rc.d/devd,v 1.11 2008/07/16 19:50:29 dougb Exp $
4 # $DragonFly: src/etc/rc.d/devd,v 1.1 2008/10/03 00:26:21 hasso Exp $
6 # PROVIDE: devd
7 # REQUIRE: netif network_ipv6
8 # BEFORE: NETWORKING mountcritremote
9 # KEYWORD: nojail shutdown
11 . /etc/rc.subr
13 name="devd"
14 rcvar=`set_rcvar`
15 command="/sbin/${name}"
17 load_rc_config $name
18 run_rc_command "$1"
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