SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Perhaps someone can point me to the right documentation here, or give me the answer.
So slackware uses etc/rc.d/rc.modules to load up its modules. Is this a standard, or is this a slackware specific thing?
When installing alsa, it asks me to put in the "modules.conf" these lines:
# ALSA portion
alias char-major-116 snd
alias snd-card-0 snd-intel8x0
# module options should go here
# OSS/Free portion
alias char-major-14 soundcore
alias sound-slot-0 snd-card-0
# card #1
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss
Unless I'm mistaken, Slackware doesn't have modules.conf. Should i put these in rc.modules? I see that the lines in rc.modules are set up like this
/sbin/modprobe <module name>
Will the alias command work in rc.modules? or do i need to modify the lines to something like this:
# On systems using KMOD this file will be mostly commented out,
roger that?
y
tom
And I don't see anywhere in his post saying he patched his system to use kmod instead. Reread his first post, he wanted to know the difference. With Slackware 9.1, it uses the rc.modules file by default. Yes, slackware does come with a modules.conf file but most of the time its empty and by default, the modules will be called or read from rc.modules.
Regards.
PS. kmod from what I've read is a replacement for kerneld which only loads modules in a sense. It doesn't actually use the file modules.conf but rather loads them by using the modprobe command which then in turn will read from the modules.conf file but in Slackware will read from the rc.modules if you initially loaded from there, etc.
Taken from kernel documentation lists:
-Kmod is a simple replacement for kerneld. It consists of a
-request_module() replacement and a kernel thread called kmod. When the
-kernel requests a module, the kmod wakes up and execve()s modprobe,
-passing it the name that was requested.
i dont agree, but if you like handywork do as you want, here's all a bootup calling rc.modules does :
### Update module dependencies ###
RELEASE=`uname -r`
# If /usr is mounted and we have 'find', we can try to take a shortcut:
if [ -x /usr/bin/find -a -e /lib/modules/$RELEASE/modules.dep \
-a /lib/modules/$RELEASE/modules.dep -nt /etc/*****modules.conf***** ]; then
NEWMODS="`/usr/bin/find /lib/modules/$RELEASE -type f -newer /lib/modules/$RELEASE/modules.dep`"
# Only rebuild dependencies if new module(s) are found:
if [ ! "" = "$NEWMODS" ]; then
echo "New kernel modules have been found in /lib/modules/$RELEASE/:"
echo "$NEWMODS"
echo "Updating module dependencies for Linux $RELEASE:"
/sbin/depmod -a
else
echo "Module dependencies up to date (no new kernel modules found)."
fi
else # we don't have find, or there is no existing modules.dep, or it is out of date.
echo "Updating module dependencies for Linux $RELEASE:"
/sbin/depmod -A
fi
...rest is commented out.
...using rc.modules instead of the kernel autoloader/REMOVER means youve to MANAGE drivers all by manual work, i wont do so.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.