1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-26 11:47:31 +00:00
freebsd/etc/rc.d/devd
Mike Makonnen 337338ee00 Remove the requirement for the FreeBSD keyword as it no longer
makes any sense.

Discussed with: dougb, brooks
MFC after: 3 days
2004-10-07 13:55:26 +00:00

24 lines
361 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: devd
# REQUIRE: NETWORKING
# BEFORE: mountcritremote
# KEYWORD: nojail
. /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