summaryrefslogtreecommitdiffstats
path: root/etc/rc.d/lkm3
blob: a9d6efdfef4e1f78246d54a0973917c883956312 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/sh
#
# $NetBSD: lkm3,v 1.6 2002/03/22 04:33:58 thorpej Exp $
# $FreeBSD$
#

# PROVIDE: aftermountlkm
# REQUIRE: mountall
# BEFORE:  DAEMON

. /etc/rc.subr

name="lkm3"
rcvar="lkm"
start_cmd="do_lkm3 start"
stop_cmd="do_lkm3 stop"

do_lkm3()
{
	#	(un)load kernel modules specified in /etc/lkm.conf
	#
	if [ -f /etc/rc.lkm ]; then
		lkmstage=AFTERMOUNT
		set $1 ; . /etc/rc.lkm
	fi
}

load_rc_config lkm
run_rc_command "$1"
OpenPOWER on IntegriCloud