a67080c774
dev database be rebuilt after loading modules. Loading modules might create new nodes in /dev, but the dev database is being initialized too soon for lkm2 and lkm3. This means that, eg, /dev/xf86 (typically marked AFTERMOUNT and loaded by lkm2) will show up properly. Reviewed by lukem.
40 lines
573 B
Bash
Executable File
40 lines
573 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# $NetBSD: lkm2,v 1.5 2002/10/08 16:21:52 atatat Exp $
|
|
#
|
|
|
|
# PROVIDE: beforemountlkm
|
|
# REQUIRE: syslogd
|
|
|
|
. /etc/rc.subr
|
|
|
|
name="lkm2"
|
|
rcvar="lkm"
|
|
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
|
|
}
|
|
|
|
lkm2_stop()
|
|
{
|
|
if [ -r /etc/rc.lkm ]; then
|
|
lkmstage=BEFOREMOUNT
|
|
set stop ; . /etc/rc.lkm
|
|
fi
|
|
}
|
|
|
|
load_rc_config lkm
|
|
run_rc_command "$1"
|