You are not logged in.

#1 2007-01-08 20:31:50

From: Chicago, IL, USA
Registered: 2006-06-06
Posts: 66

modprobe.conf install

I have a style question on the install and remove commands in modules.conf.

This is my modprobe.conf as of now

# /etc/modprobe.conf (for v2.6 kernels)
alias irda0 nsc-ircc # required for irattach
options nsc-ircc dongle_id=0x09 io=0x2f8 irq=3 
install nsc-ircc /usr/bin/setserial /dev/ttyS1 uart none; 
        /sbin/modprobe --ignore-install nsc-ircc; 
        /sbin/modprobe ircomm; 
        /sbin/modprobe ircomm-tty

# Enable experimental featues, and hotkeys in ibm-acpi
options ibm-acpi experimental=1
install ibm-acpi /sbin/modprobe --ignore-install ibm-acpi; 
        echo enable > /proc/acpi/ibm/hotkey

I was wondering if there would be any reason why I shouldn't run services on module load, instead of rc.conf's DAEMONS array

For example

install snd-intel8x0 /sbin/modprobe --ignore-install snd-intel8x0; 
        /etc/rc.d/alsa start
remove snd-intel8x0 /etc/rc.d/alsa stop; 
        /sbin/modprobe -r --ignore-remove snd-intel8x0

I can think of other hardware that needs extra configuration before it's completely useful. Like soft modems, network cards, irda, etc. Also this could save on power for notebook users by turning off unused devices (such as IRDA).

Is this the right way to use these directives? It probably me having a case of the I-just-learned-how-to syndrome, but I think this could be useful in combination with udev's RUN option, I just haven't seen it used like this before.


Board footer

Powered by FluxBB