2000-03-10 14:53:23 +03:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
2002-10-08 20:21:52 +04:00
|
|
|
# $NetBSD: lkm1,v 1.7 2002/10/08 16:21:52 atatat Exp $
|
2000-03-10 14:53:23 +03:00
|
|
|
#
|
|
|
|
|
|
|
|
# PROVIDE: beforenetlkm
|
2000-08-22 03:34:45 +04:00
|
|
|
# REQUIRE: root bootconf
|
2000-03-10 14:53:23 +03:00
|
|
|
|
|
|
|
. /etc/rc.subr
|
|
|
|
|
|
|
|
name="lkm1"
|
2000-09-19 17:04:38 +04:00
|
|
|
rcvar="lkm"
|
2000-03-10 14:53:23 +03:00
|
|
|
start_cmd="lkm1_start"
|
|
|
|
stop_cmd="lkm1_stop"
|
|
|
|
|
|
|
|
lkm1_start()
|
|
|
|
{
|
|
|
|
# load kernel modules specified in /etc/lkm.conf if the /usr
|
|
|
|
# filesystem is already present with "/" or can be mounted now
|
|
|
|
#
|
2000-09-19 17:04:38 +04:00
|
|
|
if [ -f /etc/rc.lkm ]; then
|
2000-03-10 14:53:23 +03:00
|
|
|
mount /usr >/dev/null 2>&1
|
|
|
|
if [ -x /usr/bin/ld ]; then
|
|
|
|
lkmstage=BEFORENET
|
|
|
|
set start ; . /etc/rc.lkm
|
|
|
|
fi
|
|
|
|
fi
|
2002-10-08 20:21:52 +04:00
|
|
|
|
|
|
|
/etc/rc.d/sysdb devdb
|
2000-03-10 14:53:23 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
lkm1_stop()
|
|
|
|
{
|
2000-10-09 10:11:38 +04:00
|
|
|
if [ -f /etc/rc.lkm ] && [ -x /usr/bin/ld ]; then
|
2000-03-10 14:53:23 +03:00
|
|
|
lkmstage=BEFORENET
|
|
|
|
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"
|