devd revision 159126
1106688Simp#!/bin/sh 2106688Simp# 3106688Simp# $FreeBSD: head/etc/rc.d/devd 159126 2006-06-01 00:41:07Z thompsa $ 4106688Simp# 5106688Simp 6109348Smtm# PROVIDE: devd 7159126Sthompsa# REQUIRE: netif 8159126Sthompsa# BEFORE: NETWORKING mountcritremote 9136224Smtm# KEYWORD: nojail 10106688Simp 11106688Simp. /etc/rc.subr 12106688Simp 13106688Simpname="devd" 14106688Simprcvar=`set_rcvar` 15151809Syarcommand="/sbin/${name}" 16106688Simp 17106688Simpload_rc_config $name 18106688Simprun_rc_command "$1" 19107397Simp 20107397Simp# If devd is disabled, turn it off in the kernel to avoid memory leaks. 21107397Simpif ! checkyesno ${rcvar}; then 22107397Simp sysctl hw.bus.devctl_disable=1 23107397Simpfi 24