Hi,
Whenever I want to use my printer, I have to give the command "modprobe lp" to load the lp module. When the system starts up it load parport & parport_pc modules but not lp. I have now put the command in rc.local file so that the module gets loaded when the system starts. But my question is how does certain modules get automatically loaded when the system starts ? To be more specific, how do I configure /etc/modprobe.conf file to load modules which I want, automatically. For example the lines,
alias snd-card-0 snd-intel8x0 alias sound-slot-0 snd-intel8x0
automatically loads the various sound modules like,
(snd_pcm_oss,snd_mixer_oss,snd_intel8x0,snd_ac97_codec,snd_pcm,snd_timer)
I want to know how/what do I do with the /etc/modprobe.conf file to make module "lp" to load automatically. I tried adding the following, but that does not work
alias char-major-6* lp
I tried many other ways but can't figure out how to do it. In other words, I am not able to understand how the kernel automatically loads certain modules. For example, when I start pppd (dial-up ), the following modules get inserted automatically when connected successfully,
Module Size Used by ppp_deflate 4992 0 zlib_deflate 20888 1 ppp_deflate zlib_inflate 16896 1 ppp_deflate bsd_comp 5504 0 ppp_async 9088 1 crc_ccitt 1920 1 ppp_async ppp_generic 24980 7 ppp_deflate,bsd_comp,ppp_async slhc 6528 1 ppp_generic
There are no entries for pppd in the /etc/modprobe.conf file, still the modules get loaded. Then why does not "lp" modules get loaded why I, for instance, give the command "lpr" .
I tried reading the man pages but not of much help. Any pointers to other documentation would also be good. I tried to find something with google but no luck.
Regards, Rajen.
-- ... The trouble with doing something right the first time is that nobody appreciates how difficult it was.