Commit Graph

9 Commits

Author SHA1 Message Date
cube
4804c0d992 modload(8) already obtain the value of the machdep.booted_kernel sysctl
node, and use it as a reasonable default when no -A option is passed.

The difference is, modload(8) prefers /dev/ksyms rather than the sysctl
node, which is the behaviour we really want.

Unconditionally passing -A in rc.lkm prevents the loading of inter-
dependent modules from rc.d, as reported by Jeff Rizzo on netbsd-users.
2005-03-04 21:11:23 +00:00
christos
611f2a6106 say what don't you like about $when, approved by luke. 2003-01-05 22:47:12 +00:00
lukem
0c70e530af use ${foo##*/} instead of basename $foo. as suggested (with minor variation)
by Toru Nishimura <nisimura@itc.aist-nara.ac.jp>
2000-10-07 07:36:56 +00:00
jdolecek
cd0b41e240 modload: use kernel name obtained via sysctl machdep.booted_kernel if the sysctl
is available and file it points to is readable
2000-09-10 16:50:05 +00:00
tron
e4983783f7 Enhance "rc.lkm" so that it works properly with "/etc/rc.d/lkm[123]". 2000-05-26 17:46:16 +00:00
tron
7b08b77240 If "output" field in "lkm.conf" is set to "TEMP" create output file in
"/tmp" and remove it after loading.
1998-12-29 16:29:23 +00:00
perry
1edc7aef02 fix 3885 from Matthias Scheler -- print out the name of each loaded module 1997-07-18 23:38:52 +00:00
drochner
4e045b6b43 Take 2 to get the mount order "right", taking care of possible LKM
loads before netstart this time.
LKMs can be loaded at 3 strategic places in /etc/rc - before netstart,
before "mount -a" and after all. "before netstart" works only if
the /usr filesystem is local (or on NFS, if root is too).
An additional field ("when") in lkm.conf controls when the LKM is
loaded.
1997-07-14 11:55:44 +00:00
mrg
52a5311c49 add rc.lkm and lkm.conf, to be run from /etc/rc. 1997-01-05 11:47:53 +00:00