summaryrefslogtreecommitdiff
path: root/init.d/devd.in
blob: d071911c87e85f1d7f9fb60609ec3b95d54f2779 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!@SBINDIR@/openrc-run
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
# Released under the 2-clause BSD license.

command=/sbin/devd
command_args=$devd_args
name="Device State Change Daemon"

depend() {
	need localmount
	after bootmisc
	before net.lo0
	keyword -jail -prefix
}

start_pre() {
	sysctl hw.bus.devctl_disable=0 >/dev/null
}

stop_post() {
	sysctl hw.bus.devctl_disable=1 >/dev/null
}