Re: comedi_config in /etc/modules.conf for Debian "Etch"

On 29/11/06 14:15, Apodaca, Bob wrote:
> When using Debian "Sarge" I was able to set-up /etc/modules.conf to 
> automatically run comedi_config by creating a file in 
> /etc/modutils/comedi with the following:
> 
> alias char-major-98 comedi
> alias char-major-98-0 ni_pcimio
> post-install ni_pcimio /usr/sbin/comedi_config /dev/comedi0 ni_pcimio
> 
> However, this does not work (after running update-modules and 
> rebooting).  I have changed the last line to the following:
> 
> post-install ni_pcimio /usr/bin/touch /var/tmp/asdf
> 
> and the file /var/tmp/asdf is not created suggesting that this is not 
> executing at all.  What am I missing?

If you are using a 2.6 kernel, it will be using /etc/modprobe.conf 
rather than /etc/modules.conf and the post-install command won't work. 
Check the man-page for modprobe.conf for the 'install' command.  You 
could use something like this in your /etc/modutils/comedi:

install ni_pcimio /sbin/modprobe --ignore-install ni_pcimio && \
/usr/sbin/comedi_config /dev/comedi0 ni_pcimio

That won't work for a 2.4 kernel.  I've no idea how Debian modutils 
manages the difference between modules.conf and modprobe.conf, so you 
will need to check the Debian docs for that.

-- 
-=( Ian Abbott _at_ MEV Ltd.    E-mail: <abbotti_at_mev.co.uk>        )=-
-=( Tel: +44 (0)161 477 1898   FAX: +44 (0)161 718 3587         )=-

Received on 2006-11-29Z16:15:43