Modprobe - how to add a module with parameters
Hi all
I need to add a module for a NIC but when I do it freezes. I think it may need extra info passed to it, like the PCI details.. rmmod tulip modprobe dmfe I can get the details by doing something like cat /proc/pci but how do I use them with modprobe? Or am I on the wrong track with this? Running openSUSE 10.2, trying to follow this bug - https://bugzilla.novell.com/show_bug.cgi?id=128941 Cheers Neil |
Quote:
man modprobe ------------------ Steve Stites |
You can also put parameters into the file /etc/modprobe.conf or into the file /etc/modprobe.d/<file> but use only one method or the other, not both, as one takes priority.
Something like my file called /etc/modprobe.d/bonding contains: alias bond0 bonding options bonding mode=active-backup miimon=1000 primary=eth0 With the above, if I issue the command 'modprobe bonding' or 'modprobe bond0' then the kernel module 'bonding.ko' kets inserted with the parameters on that line. The ALIAS line just gives an alias to the module, so that if you had a module called 'sdgfuih34hu6789d978f' you could modprobe it much easier by aliasing it, like 'alias easyname sdgfuih34hu6789d978f' and now you would use 'modprobe easyname' |
Thanks guys :)
|
All times are GMT -5. The time now is 09:56 PM. |