View Full Version : Loading modules at boot
Viro
2004-07-06, 04:53 AM CDT
How do I load modules at boot time? I'm interested in loading the modules usbserial and visor at boot so that I don't have to manually modprobe the modules later when I want to use them.
I'm guessing that I need to somehow edit my /etc/modprobe.conf file, but what do I add? I've tried adding /sbin/modprobe visor but that doesn't seem to work.
crackers
2004-07-06, 05:36 AM CDT
The USB devices are loaded when they're connected, usually. Are you having issues with them without explicitly loading the modules?
Viro
2004-07-06, 02:15 PM CDT
I need to specifically pass certain options to the visor module. These don't get passed when the module gets automatically loaded which is why I want to preload them before hand.
superbnerd
2004-07-06, 03:06 PM CDT
I am not exactly sure, but a good place to start is by reading the unuser-friendly man pages for modprobe.conf - THE HORRORS!
Viro
2004-07-06, 03:51 PM CDT
Man modprobe.conf gave me the information I wanted. You can tell that I've not been using *nix for a long time as I've forgotten how cool the man pages are.
EDIT: Thought that I'd be more helpful and list how I managed to get modules to install automatically at load time, so anyone who comes by later can benefit from it.
Assuming you want to install the visor module at boot up, all you need to do is to add the following line to /etc/modprobe.conf.
install visor /sbin/modprobe --ignore-install visor
Pretty simple :D
crackers
2004-07-07, 09:22 AM CDT
Don't you just love/hate that? :rolleyes:
vBulletin® v3.8.1, Copyright ©2000-2009, Jelsoft Enterprises Ltd.