On Sun, Oct 13, 2002 at 11:45:32AM +1300, gjw49 wrote: > > not as far as I know but I havn't set up modules.conf for quite a while. > > no, /etc/modules (not modules.conf) ... or is that just a debian thing? (been
/etc/modules is a Debian thing. modules.conf still exists, and that is the correct place to put options for modules. (need to do it via a file in /etc/modutils/ though, or your changes will get blown away next time update-modules(8) is run). [0] > > > > #/etc/modules.conf > > > > alias eth0 smc9194 > > > > options smc9194 io=10 io=0x300 ifport=0 #usually io=xx is all you need. > > > (was that a typo? perhaps you meant irq=10?) > > not a typo but probably better known as io=XX (Y=X) > ah, never seen it done before.. interesting. thanks, I just learnt something > =) No, Gareth is probaby right... you have two io= options: "io=10 io=0x300", that should probably be "irq=10 io=0x300" On a more general note, using "alias <ethX> <module>" in /etc/modules.conf is a good way to do things when you have multiple network cards.. since you usually map IP addresses onto ethX devices, you dont want the wrong card to init first... since the physical link on each card is only ever plugged into one card... What if the two cards are the same? Well, there are several ways to do this, and I think the best way is the "map" function of /etc/network/interfaces in Debian. you can then map an ethernet card by its hardware address.... [0] This is done in Debian because policy says that any package is not allowed to modify configuration files of any other package... (bad example for modules.conf, since it doesnt belong to a package - but the idea stands) So, if there is a facility to dump a file that can be included in a configuration file, or as an action for a daemon (cron, etc) then that makes it easy for a package to maintain its own little section of a config file. For example, /etc/modutils/ , /etc/cron.*/ , /etc/ppp/ip-up.d/ (and down) - etc... Mike. -- Michael Beattie <[EMAIL PROTECTED]> "This isnt Mission Difficult Mr Hunt, this is Mission Impossible. Difficult should be a walk in the park for you." -- MI:2
