Re: Kmod not functioning correctly with 2.2.3 kernel
On Sun, Apr 11, 1999 at 02:03:31PM +1000, Jason Stokes wrote:
> Certain modules hang around in the
> kernel forever, even when they aren't being used, and are never flushed (eg
> ppa, the Zip parallel port driver)
Do an lsmod. Do the offending modules have a use count of 0, the
"(autoclean)" flag listed, and no modules using them listed? If they're
not listed as autoclean, then you manualy inserted them (perhaps using
modconf; /etc/modules should probably only contain "noauto"). If all that
is true then rmmod -a isn't being run. In /etc/cron.d, put a file named
modutils with this line:
*/20 * * * * root test -f /proc/modules && /sbin/rmmod -a
That should do it. Potato has this by default; it's in package modutils.
> while others are not autoloaded on demand
> (eg soundcore and es1371).
You need to add aliases for these. For example, I have in
/etc/modutils/sound:
alias sound-service-0-3 cs4232
alias sound-service-0-0 cs4232
After modifying the files in /etc/modutils/ (all of which are really
equivelent; they just get cated together anyway), run update-modules.
> Apr 11 13:59:43 valis modprobe: can't locate module char-major-14
You need to look for lines like this and add aliases as appropriate. Alias
somthing to "off" if you don't want it to load anything.
-=- James Mastros
--
"My friend Data: You see the world with the wonder of a child, and that
makes you more human then any of us."
-=- Lt. Tasha Yar, upon the occasion of her death.
Reply to: