|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
Member (5 bit)
Join Date: Nov 2004
Posts: 30
|
how to make a module load at boot in udev
Hi all.
How do you make a module load at bootime with udev? I've installed fuse and fusesmb on my pc running fedora 3. Everything works fine except, everytime I reboot, the fuse module never gets loaded. I always end up opening a console, and do a modprobe. I've read a similar solution regarding this but with a different module ( it was the sonypi driver, which I used when I installed fedora on my notebook ). The soloutions was to copy the device to /etc/udev/devices ( e.g. cp -a /dev/sonypi /etc/udev/devices) and add an alias to the sonypi driver module in modprobe.conf. With the fuse module I don't know what to put in the modprobe.conf. So I've tried to do a copy of the fuse device to /etc/udev/devices ( e.g. cp -a /dev/fuse /etc/udev/devices ), but I did not add anything in the modprobe.conf. I did a reboot but the fuse module still does not get loaded. Help. |
|
|
|
|
|
#2 |
|
Member (8 bit)
Join Date: Jul 2005
Posts: 177
|
I"ve never played with Fedora, but in Debian I use modconf to load modules. Once I load them with modconf I never have to mess with it again.
|
|
|
|
|
|
#3 |
|
Member (5 bit)
Join Date: Nov 2004
Posts: 30
|
Fedora doesn't have a modconf command and I believe that Debian is using devfs instead of udev. In devfs, creating a device file in /dev directory for a module will load the module at boot, I believe this is one of the steps modconf does. I think udev works differently.
Anybody out there have any experience with udev? |
|
|
|
|
|
#4 | |
|
Member (8 bit)
Join Date: Jul 2005
Posts: 177
|
Quote:
|
|
|
|
|
|
|
#5 |
|
Member (11 bit)
Join Date: Apr 2003
Posts: 1,525
|
The simplest hack is to edit /etc/rc.d/rc.local. Rc.local is the last init script to run and is often used in RH based distros to get around these kinds of problems. Just add this line at the end of rc.local:
modprobe (insert module name) Since rc.local is the last init script to run, nothing else will change what is done there. |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|