NetBSD/etc/rc.d/lkm3

29 lines
463 B
Plaintext
Raw Normal View History

2000-03-10 14:53:23 +03:00
#!/bin/sh
#
# $NetBSD: lkm3,v 1.3 2000/05/13 08:45:07 lukem Exp $
2000-03-10 14:53:23 +03:00
#
# PROVIDE: aftermountlkm
# REQUIRE: mountall
. /etc/rc.subr
name="lkm3"
2000-03-11 23:10:21 +03:00
start_precmd="checkyesno lkm"
2000-03-10 14:53:23 +03:00
start_cmd="do_lkm3 start"
2000-03-11 23:10:21 +03:00
stop_precmd="$start_precmd"
2000-03-10 14:53:23 +03:00
stop_cmd="do_lkm3 stop"
do_lkm3()
{
# (un)load kernel modules specified in /etc/lkm.conf
#
if checkyesno lkm && [ -f /etc/rc.lkm ]; then
lkmstage=AFTERMOUNT
set $1 ; . /etc/rc.lkm
fi
}
load_rc_config $name
2000-03-10 14:53:23 +03:00
run_rc_command "$1"