LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   how to load a modue (lp) at start up 12.2.0 (https://www.linuxquestions.org/questions/slackware-14/how-to-load-a-modue-lp-at-start-up-12-2-0-a-702819/)

ftumsh 02-06-2009 04:43 PM

how to load a modue (lp) at start up 12.2.0
 
Lo,

I'm having trouble loading a module at startup. it's the lp module. parport and parport_pc load. When
I modprobe lp it loads and I can then print.

Now, back in the olden days, all I'd do is edit rc.modules and all would be fine. However rc.modules appears to be deprecated (indeed, I don't have one) and I'm under the impression that one is to use udev.
udev seems hellish complicated for getting a parallel printer to run. ISTR tackling it before to get my scsi scanner to work and it wasn't a nice experience.

So, should I just create an rc.modules script or put it in rc.local or could some kind soul let me know what the udev rule should look like please?

Thanks

John

Didier Spaier 02-06-2009 05:11 PM

If you installed a kernel-modules package in Slackware 12.2, you should have a file /etc/rc.d/rc.modules. It is a symbolic link to another file in the same directory called rc.modules-<something>.

So all you have to do is uncomment the relevant lines. Of course you need to chmod +x /etc/rc.d/rc.modules*

Woodsman 02-06-2009 05:18 PM

Hmm. Perhaps I missed that day in school, but my 12.2 setup has an rc.modules file. Actually, rc.modules is soft link to rc.modules-2.6.27.7-smp. I also have an rc.modules-2.6.27.7 file.

The rc.modules files are installed from the a/kernel-modules-smp-2.6.27.7_smp-i686-1 and a/kernel-modules-2.6.27.7-i486-1 packages. Perhaps try reinstalling those packages.

From within those rc.modules files, I still enable the lp kernel module. Just like previously, delete the comment hash mark and ensure the rc.modules file is executable.

ftumsh 02-12-2009 07:25 AM

Quote:

Originally Posted by Woodsman (Post 3434609)
Hmm. Perhaps I missed that day in school, but my 12.2 setup has an rc.modules file.

I think I missed it too.
It looks like some lamebrain has deleted it (That'd be me). Either that or the upgrade fubard,
which is highly unlikely.

Thank you both for your time.

John


All times are GMT -5. The time now is 09:55 PM.