Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
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.
Hello, I have a problem, I installed quake for linux and there was no sound at start of the game. I found out that if i add a line: echo fuhquake-gl.glx 0 0 direct > /proc/asound/card0/pcm0p/oss in /proc/asound/card0/pcm0p/oss, the game works with sound. The only problem is when I reboot, the line is gone from the file. What is the best way to have the line added to the file automatically when I reboot? Do I create an autostart script? I don't think the .kde/autostart will work because you have to be root to do this. I could be wrong. Help please. I don't want to have to add the line manually everytime I boot. Thanks.
Thanks for replying bsdunix, I am using suse so there is no rc.local in /etc/init.d
However, there is rc in /etc/init.d which contains rules for daemons. Can I add the line to it?
Thanks,
Distribution: BeOS, BSD, Caldera, CTOS, Debian, LFS, Mac, Mandrake, Red Hat, Slackware, Solaris, SuSE
Posts: 1,761
Rep:
If there is no rc.local in /etc or /etc/rc.d (if you have
a /etc/rc.d), then use /etc/init.d/boot.local file. It's
been a long while since I used SuSE. Apparently,
boot.local is the replacement for rc.local file.
bsdunix, I do have boot.local in etc/init.d
I added the script and it wouldn't work after I rebooted
I even added my command and still didn't work
What could be wrong?
Is there another way it can be accomplished? Thanks
-bhert
*EDIT* Could it be permissions? boot.local is set at 744
Distribution: BeOS, BSD, Caldera, CTOS, Debian, LFS, Mac, Mandrake, Red Hat, Slackware, Solaris, SuSE
Posts: 1,761
Rep:
Quote:
I added the script and it wouldn't work after I rebooted
I installed OpenSUSE 10.2 (very nice) and sure enough the darn boot.local file won't work. After much trial and error I was able to get it to work using after.local file (which I had to create). I found out about that file by looking at the /etc/init.d/rc script.
Code:
# cd /etc/init.d
# touch after.local
# chmod 744 after.local
# vi after.local
Enter the following text, save, and reboot:
Code:
#! /bin/sh
#
# /etc/init.d/after.local
#
#
# Here you should add things, that should happen directly
# after run level is reached.
#
if [ -f /proc/asound/card0/pcm0p/oss ]; then
echo "fuhquake-gl.glx 0 0 direct" > /proc/asound/card0/pcm0p/oss
fi
Verify it worked:
Code:
# cat /proc/asound/card0/pcm0p/oss
fuhquake-gl.glx 0 0 direct
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.