NetBSD/etc/rc.d/lkm2

40 lines
591 B
Plaintext
Raw Normal View History

2000-03-10 14:53:23 +03:00
#!/bin/sh
#
# $NetBSD: lkm2,v 1.6 2004/08/13 18:08:03 mycroft Exp $
2000-03-10 14:53:23 +03:00
#
# PROVIDE: beforemountlkm
# REQUIRE: syslogd
$_rc_subr_loaded . /etc/rc.subr
2000-03-10 14:53:23 +03:00
name="lkm2"
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
/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
}
load_rc_config lkm
2000-03-10 14:53:23 +03:00
run_rc_command "$1"