freebsd-dev/etc/rc.d/devd
Mike Makonnen 5a28517db0 Purely cosmetic change.
The # PROVIDE line should precede the # REQUIRE line.

Approved by: markm (mentor)
2003-01-16 02:27:52 +00:00

24 lines
348 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: devd
# REQUIRE: rcconf
# BEFORE: disks
# KEYWORD: FreeBSD
. /etc/rc.subr
name="devd"
rcvar=`set_rcvar`
command="/sbin/devd"
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