2000-03-10 14:53:23 +03:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
2004-08-13 22:08:03 +04:00
|
|
|
# $NetBSD: lkm3,v 1.8 2004/08/13 18:08:03 mycroft Exp $
|
2000-03-10 14:53:23 +03:00
|
|
|
#
|
|
|
|
|
|
|
|
# PROVIDE: aftermountlkm
|
|
|
|
# REQUIRE: mountall
|
2002-03-22 07:33:57 +03:00
|
|
|
# BEFORE: DAEMON
|
2000-03-10 14:53:23 +03:00
|
|
|
|
2004-08-13 22:08:03 +04:00
|
|
|
$_rc_subr_loaded . /etc/rc.subr
|
2000-03-10 14:53:23 +03:00
|
|
|
|
|
|
|
name="lkm3"
|
2000-09-19 17:04:38 +04:00
|
|
|
rcvar="lkm"
|
2000-03-10 14:53:23 +03:00
|
|
|
start_cmd="do_lkm3 start"
|
|
|
|
stop_cmd="do_lkm3 stop"
|
|
|
|
|
|
|
|
do_lkm3()
|
|
|
|
{
|
|
|
|
# (un)load kernel modules specified in /etc/lkm.conf
|
|
|
|
#
|
2000-09-19 17:04:38 +04:00
|
|
|
if [ -f /etc/rc.lkm ]; then
|
2000-03-10 14:53:23 +03:00
|
|
|
lkmstage=AFTERMOUNT
|
|
|
|
set $1 ; . /etc/rc.lkm
|
|
|
|
fi
|
2002-10-08 20:21:52 +04:00
|
|
|
|
|
|
|
/etc/rc.d/sysdb devdb
|
2000-03-10 14:53:23 +03:00
|
|
|
}
|
|
|
|
|
2000-07-15 06:30:18 +04:00
|
|
|
load_rc_config lkm
|
2000-03-10 14:53:23 +03:00
|
|
|
run_rc_command "$1"
|