Subject: Re: Why doesn't modload remove linked modules?
To: None <current-users@NetBSD.ORG>
From: Matthias Scheler <tron@lyssa.owl.de>
List: current-users
Date: 11/02/1997 12:29:37
In article <UoL6vfm6LiYE4XBVkb@zelux6>,
	Matthias Drochner <drochner@zelux6.zel.kfa-juelich.de> writes:
> There is already the "-o" option to modload.

I know. But I have to set a target directory for each module in "lkm.conf"
and remove the manually afterwards.

> I have a use for the link output: It allows to stack LKMs - a new
> module can use the definitions of a previously loaded one if it is
> linked against this file (with "-A").

Ok, what about this attempt:
If "-o" is passed as argument to "modload" store and keep the module.
If there's no "-o" argument create a temporary file in "/tmp" and
remove it afterwards.

-- 
Matthias Scheler                                http://home.owl.de/~tron/