2000-03-10 14:53:23 +03:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
2002-10-08 20:21:52 +04:00
|
|
|
# $NetBSD: lkm2,v 1.5 2002/10/08 16:21:52 atatat Exp $
|
2000-03-10 14:53:23 +03:00
|
|
|
#
|
|
|
|
|
|
|
|
# PROVIDE: beforemountlkm
|
|
|
|
# REQUIRE: syslogd
|
|
|
|
|
|
|
|
. /etc/rc.subr
|
|
|
|
|
|
|
|
name="lkm2"
|
2000-09-19 17:04:38 +04:00
|
|
|
rcvar="lkm"
|
2000-03-10 14:53:23 +03:00
|
|
|
start_cmd="lkm2_start"
|
|
|
|
stop_cmd="lkm2_stop"
|
|
|
|
|
|
|
|
# load kernel modules specified in /etc/lkm.conf
|
|
|
|
#
|
|
|
|
lkm2_start()
|
|
|
|
{
|
|
|
|
if [ -r /etc/rc.lkm ]; then
|
|
|
|
lkmstage=BEFOREMOUNT
|
|
|
|
set start ; . /etc/rc.lkm
|
|
|
|
else
|
|
|
|
warn "/etc/rc.lkm not found; LKMs not loaded."
|
|
|
|
fi
|
2002-10-08 20:21:52 +04:00
|
|
|
|
|
|
|
/etc/rc.d/sysdb devdb
|
2000-03-10 14:53:23 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
lkm2_stop()
|
|
|
|
{
|
|
|
|
if [ -r /etc/rc.lkm ]; then
|
|
|
|
lkmstage=BEFOREMOUNT
|
|
|
|
set stop ; . /etc/rc.lkm
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
2000-07-15 06:30:18 +04:00
|
|
|
load_rc_config lkm
|
2000-03-10 14:53:23 +03:00
|
|
|
run_rc_command "$1"
|