Commit Graph

7 Commits

Author SHA1 Message Date
Peter Wemm
185156015b Add a few more heuristics to modload:
1: generate the outfile in /tmp if it's not specified explicitly.
2: if the outfile was implicitly placed in /tmp, automatically remove it.

This means that you can type: modload /lkm/ipfw_mod.o and it'll work, it
wont try and write to /lkm, and it wont leave the (normally) useless
symbol file.

This should not interfere with things like ibcs2 and atapi, which
export some symbols from one LKM to the other by leaving the symbol file.
1995-10-28 17:06:05 +00:00
Peter Wemm
cdf14730ab Make modload calculate a reasonable default entry point name, in light
of the recent changes to bsd.kmod.mk, which enforces that the entry
point be <modname>_mod, unless overridden.

This means that when modloading "/lkm/foo_mod.o", it'll use "foo_mod"
as the default entry point (instead of xxxinit) unless you specify
another via the -e option.
1995-10-28 13:06:11 +00:00
Garrett Wollman
9d1275ccf4 Add two new flags:
-q just shut up, will you?!
	-u unlink output file after successful load
1994-09-22 22:35:53 +00:00
David Greenman
f3932b979d Various fixes:
modload doesn't honor it's -p argument.

It also will destroy the input file when you don't specify an output
symbol file with -o.

Submitted by:	John Kohl
1994-09-18 04:12:13 +00:00
David Greenman
fa7844fed9 Kill explicit OS specification. 1994-08-19 13:39:20 +00:00
David Greenman
645637cf3f netbsd -> kernel, NetBSD -> FreeBSD 1994-08-19 13:28:21 +00:00
David Greenman
eeabb58ec9 Terry Lambert's loadable kernel module support - modload & modunload
utilities w/improvements from the NetBSD group.
1994-08-19 12:07:23 +00:00