mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-27 11:55:06 +00:00
27bc1b287e
while. This is only the script pieces, the glue for the build comes next. Submitted by: Mike Makonnen <makonnen@pacbell.net> Reviewed by: silence on -current and -hackers Prodded by: rwatson
30 lines
429 B
Bash
Executable File
30 lines
429 B
Bash
Executable File
#!/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"
|