7c88a6d4ae
- Add rc.d/stf and rc.d/faith for stf(4) and faith(4). - Remove rc.d/auto_linklocal and rc.d/network_ipv6. - Move rc.d/sysctl to just before FILESYSTEMS because rc.d/netif depends on some sysctl variables. Reviewed by: brooks MFC after: 3 days
24 lines
379 B
Bash
Executable File
24 lines
379 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
# PROVIDE: devd
|
|
# REQUIRE: netif
|
|
# 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
|