On Fri, 30 May 2003, Amir Hardon wrote:

> Searching answers in the net means you don't know what to do.
> What I'm looking for is one of two things,
> a list which tells which module name is expected for which service so I'll 
> know how to alias it, something like:
> service               requested module
> ethernet              eth0
> sound         sound-slot-x
> usb                   usb-controller
> ..
> 
> or a simple way to find out the last unsuccessful module request...
> This way the next time I'll install something I won't need to start digging 
> the net to find out how should I alias it...

accorrding to 'man modprobe' (which is the utility that reads 
/etc/modules.conf):

------------------------------------------------------
LOGGING COMMANDS
       If directory /var/log/ksymoops exists and modprobe is  run
       with  an  option that could load or a delete a module then
       modprobe  will  log  its  command  and  return  status  in
       /var/log/ksymoops/`date +%Y%m%d.log`.   There is no switch
       to disable this automatic logging, if you do not  want  it
       to  occur,  do  not  create  /var/log/ksymoops.   If  that
       directory exists, it should be owned by root and  be  mode
       644 or 600 and you should run script insmod_ksymoops_clean
       every day or so.
------------------------------------------------------

i went ahead and created this directory, then i stoped the network, 
removed the NIC's module, and started the network. here is what was placed 
in the file '/var/log/ksymoops/20030531.log':

20030531 110128 start /sbin/modprobe -s -k -- eth0 safemode=1
20030531 110128 probe ended
20030531 110133 start /sbin/modprobe -s -k -- eth0 safemode=1
20030531 110133 probe ended
20030531 110138 start /sbin/modprobe -s -k -- eth0 safemode=1
20030531 110138 probe ended

it looks like the 'eth0' parameter is the name of the module. you could 
try this with other modules as well, to see that the behaviour is 
consistent. note that i get this output whether or not i have 'eth0' 
aliased in my /etc/modules.conf, and there is no error indication 
what-so-ever in this log file, or in other files in that directory, nor in 
/var/log/messages. but there is the module's name.

at last i'll be able to stop guessing ;)

-- 
guy

"For world domination - press 1,
 or dial 0, and please hold, for the creator." -- nob o. dy


=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to