LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 06-18-2006, 10:49 AM   #1
Unicron
Member
 
Registered: Feb 2005
Distribution: Ubuntu (Dapper)
Posts: 32

Rep: Reputation: 15
My script wont run on boot


I have a script sound.sh that contains the following lines in:

modprobe snd-sbawe
modprobe snd-pcm-oss
modprobe snd-mixer-oss
modprobe snd-seq-oss

The script is saved in /etc/init.d/
It configures my soundcard correctly when I run the script manually.

I want this script to be run on boot up. I have created a symbolic link called /etc/rc4.d/S95sound
that links to /etc/init.d/sound.sh but it doesnt seem to run on boot up. Im certain this is the procedure I used before, but not sure if it's anything to do with the modprobe commands in the script as Im not certain how they work.

Or is there a better way than running this script?

Thanks in Advance
Uni
 
Old 06-18-2006, 10:56 AM   #2
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 60
I think what you can do with that script is as root issue :
Code:
update-rc.d sound.sh defaults
and make sure its executable :
Code:
chmod +x sound.sh
Oh and the word defaults in the first command tell it, that its able to execute on runlevel 2,3,4,5.

Also since I didn't specify any paths in my examples, these are written in assumption your in the root of the folder where the sound.sh file exists. And do make sure that the file exists in /etc/init.d for doing these examples.

Last edited by DrOzz; 06-18-2006 at 10:57 AM.
 
Old 06-18-2006, 11:19 AM   #3
Unicron
Member
 
Registered: Feb 2005
Distribution: Ubuntu (Dapper)
Posts: 32

Original Poster
Rep: Reputation: 15
The update command did the trick

Thanks for your help!!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
xp + ubuntu dual boot, Gaim Wont Run On Xp sako75 Linux - Software 1 02-21-2006 12:15 AM
Can't get script to run on boot Ook Slackware 7 03-05-2005 01:31 AM
Script to run at boot robbow52 Debian 17 09-03-2004 09:04 PM
Getting script to run at boot Andy@DP Linux - Newbie 4 06-05-2004 07:39 AM
Can't get script to run on boot rickenbacherus Linux - General 5 08-21-2003 10:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 06:19 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration