NetBSD/etc/rc.d/lkm3

31 lines
440 B
Plaintext
Raw Normal View History

2000-03-10 14:53:23 +03:00
#!/bin/sh
#
# $NetBSD: lkm3,v 1.7 2002/10/08 16:21:52 atatat Exp $
2000-03-10 14:53:23 +03:00
#
# PROVIDE: aftermountlkm
# REQUIRE: mountall
# BEFORE: DAEMON
2000-03-10 14:53:23 +03:00
. /etc/rc.subr
name="lkm3"
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
#
if [ -f /etc/rc.lkm ]; then
2000-03-10 14:53:23 +03:00
lkmstage=AFTERMOUNT
set $1 ; . /etc/rc.lkm
fi
/etc/rc.d/sysdb devdb
2000-03-10 14:53:23 +03:00
}
load_rc_config lkm
2000-03-10 14:53:23 +03:00
run_rc_command "$1"