<quote who="Russell Davie">

> /etc/modules was originally generated somehow

It was done by the installer.

> I would like the 
> system to do it again.  This is so if I add or change another piece of 
> different hardware the system spots it and loads the new module without 
> me having to do:
> 1) a pci search
> 2) match the module
> 3) load the module
> 4) edit the /etc/module file for next reboot

> The point is: I wish to know how to have /etc/modules file generated 
> automatically or have some way of automatically spotting when there is a 
> hardware change and load appropriate modules at the reboot.

Your best bet is to use hotplug, which automatically instantiates drivers
for the attached devices at startup. It doesn't change /etc/modules, it just
re-detects at every startup. (Ubuntu uses hotplug and udev by default, btw.)

- Jeff

-- 
linux.conf.au 2005: Canberra, Australia                http://linux.conf.au/
 
   "This is the new dividing line in public life. It is not a question of
    Left versus Right, but a struggle between insiders and outsiders." -
                                Mark Latham
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to