Deleted Added
full compact
devd (180564) devd (197139)
1#!/bin/sh
2#
1#!/bin/sh
2#
3# $FreeBSD: head/etc/rc.d/devd 180564 2008-07-16 19:50:29Z dougb $
3# $FreeBSD: head/etc/rc.d/devd 197139 2009-09-12 22:13:41Z hrs $
4#
5
6# PROVIDE: devd
4#
5
6# PROVIDE: devd
7# REQUIRE: netif network_ipv6
7# REQUIRE: netif
8# BEFORE: NETWORKING mountcritremote
9# KEYWORD: nojail shutdown
10
11. /etc/rc.subr
12
13name="devd"
14rcvar=`set_rcvar`
15command="/sbin/${name}"
16
17load_rc_config $name
18run_rc_command "$1"
19
20# If devd is disabled, turn it off in the kernel to avoid memory leaks.
21if ! checkyesno ${rcvar}; then
22 sysctl hw.bus.devctl_disable=1
23fi
8# BEFORE: NETWORKING mountcritremote
9# KEYWORD: nojail shutdown
10
11. /etc/rc.subr
12
13name="devd"
14rcvar=`set_rcvar`
15command="/sbin/${name}"
16
17load_rc_config $name
18run_rc_command "$1"
19
20# If devd is disabled, turn it off in the kernel to avoid memory leaks.
21if ! checkyesno ${rcvar}; then
22 sysctl hw.bus.devctl_disable=1
23fi