NetBSD/etc/rc.d/lkm3
mycroft 7d2e1537c5 Add an _rc_subr_loaded variable, set to ":" by rc.subr. Scripts can use this
for a speedup by doing:
$_rc_subr_loaded . /etc/rc.subr
2004-08-13 18:08:03 +00:00

31 lines
458 B
Bash
Executable File

#!/bin/sh
#
# $NetBSD: lkm3,v 1.8 2004/08/13 18:08:03 mycroft Exp $
#
# PROVIDE: aftermountlkm
# REQUIRE: mountall
# BEFORE: DAEMON
$_rc_subr_loaded . /etc/rc.subr
name="lkm3"
rcvar="lkm"
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
lkmstage=AFTERMOUNT
set $1 ; . /etc/rc.lkm
fi
/etc/rc.d/sysdb devdb
}
load_rc_config lkm
run_rc_command "$1"