mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-22 08:53:41 +01:00
9d62501fd8
Note that `rc' and `rc.shutdown' could not be imported because we already have files with those names.
40 lines
657 B
Bash
Executable File
40 lines
657 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# $NetBSD: lkm1,v 1.5 2000/09/19 13:04:38 lukem Exp $
|
|
#
|
|
|
|
# PROVIDE: beforenetlkm
|
|
# REQUIRE: root bootconf
|
|
|
|
. /etc/rc.subr
|
|
|
|
name="lkm1"
|
|
rcvar="lkm"
|
|
start_cmd="lkm1_start"
|
|
stop_cmd="lkm1_stop"
|
|
|
|
lkm1_start()
|
|
{
|
|
# load kernel modules specified in /etc/lkm.conf if the /usr
|
|
# filesystem is already present with "/" or can be mounted now
|
|
#
|
|
if [ -f /etc/rc.lkm ]; then
|
|
mount /usr >/dev/null 2>&1
|
|
if [ -x /usr/bin/ld ]; then
|
|
lkmstage=BEFORENET
|
|
set start ; . /etc/rc.lkm
|
|
fi
|
|
fi
|
|
}
|
|
|
|
lkm1_stop()
|
|
{
|
|
if [ -f /etc/rc.lkm ] && [ -x /usr/bin/ld ]; then
|
|
lkmstage=BEFORENET
|
|
set stop ; . /etc/rc.lkm
|
|
fi
|
|
}
|
|
|
|
load_rc_config lkm
|
|
run_rc_command "$1"
|