Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
adding it to /etc/rc.local would be the easiest and cause it to run on each boot for any runlevel
if you wanted it to run only in particular runlevels then you may want to considfer adding it to /etc/init.d/ and adding the appropriate start/kill entries to your /etc/rc#.d/ directories
Hi. Sorry, I should have given more information. I am running CentOS 4, which, for those who don't know, is RHEL4 minus Red Had Trademarks.
What I am trying to do is get the bttv driver (which did not come with Red Hat's kernel, I compiled it against their kernel myself) to load at boot. This is on two computers I am trying to do this. On one computer, I have to issue the command:
modprobe bttv
and on the other:
modprobe bttv tuner=2
This is my /etc/modprobe.conf file (on the computer without the tuner=2 option):
alias eth0 8139too
alias snd-card-0 snd-ens1370
options snd-card-0 index=0
install snd-ens1370 /sbin/modprobe --ignore-install snd-ens1370 && /usr/sbin/alsactl restore >/dev/null 2>&1 || :
remove snd-ens1370 { /usr/sbin/alsactl store >/dev/null 2>&1 || : ; }; /sbin/modprobe -r --ignore-remove snd-ens1370
alias char-major-81 snd-bt87x
alias usb-controller ehci-hcd
alias usb-controller1 uhci-hcd
I tried adding numerous entries to it to get the bttv driver to load (using the tuner=2 option on the other system is very important) but it would not work, so I was thinking of making a shell script to automatically run modprobe bttv at system boot. If you know what I should add to /etc/modprobe.conf to get this to work, that would be even more helpful.
since linux-rulz did not specify and only has centOS listed for his distribution(s) that is the solution i provided. from what i have heard centOS is really nothing more than RHEL with RedHat (name, logos, etc) removed which uses rc.local. i could be mistaken, i have never used centOS.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.