LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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



Reply
 
Search this Thread
Old 01-09-2004, 12:27 PM   #1
rlange
LQ Newbie
 
Registered: Dec 2003
Location: Massachusetts USA
Distribution: Suse 9.0
Posts: 13

Rep: Reputation: 0
suse 9.0 script file placement?


i would like to write a startup script to unmask irq and after searching I see people suggesting to place it in the" rc.local" file but I am unable to find this file in Suse 9.0. If Suse does not have this file where should it be written???


TIA
 
Old 01-09-2004, 04:01 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 65
It should be:
/etc/init.d/rc.local

I have not used suse 9 - only up to 8.1 but I'm sure it will exist. If not then create the script in /etc/init.d then link it into your runlevel directory.
 
Old 01-09-2004, 04:37 PM   #3
nmayotte
Member
 
Registered: Jan 2004
Location: Minnesota
Distribution: SuSE 8.0-9.0
Posts: 37

Rep: Reputation: 15
I believe rc.local may just be referring to /etc/rc.d/boot.local (or /etc/init.d/boot.local). Basically if you put a line in that file it will run that line as root during the boot up process. Assuming the command you want to do doesn't require stuff from run level 5 to be loaded you should be good to go. Otherwise it gets a little bit more complicated, but its not too bad.
 
Old 01-10-2004, 08:39 AM   #4
rlange
LQ Newbie
 
Registered: Dec 2003
Location: Massachusetts USA
Distribution: Suse 9.0
Posts: 13

Original Poster
Rep: Reputation: 0
Could it be I was root through the su command and could not see the file?

I think this is what i need to add to the file
please correct me i am wrong.(or tell me if I am correct).

In order to turn on dma and to un mask interupts I need to add this to the startup file:

hdparm -d1 -u1 /dev/hda


Thanks for your replys and I will post my results
 
Old 01-10-2004, 08:47 AM   #5
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 65
That is correct according to:
man hdparm
 
Old 01-12-2004, 06:24 PM   #6
levenger
LQ Newbie
 
Registered: Jan 2004
Location: 'zona
Distribution: SuSe 9.0 Professional
Posts: 23

Rep: Reputation: 15
I was poking around in this directory. There is supposed to be a functions script here also that I can't find. The path is /etc/rc.d/init.d/ Try that level as root. I'm not in front of my computer so I can't look right now.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
partition placement MrMullen Linux - General 6 03-12-2005 05:15 PM
Is it possible to script window placement? thatto Linux - Software 1 02-22-2005 06:01 AM
How to start a Tcl/Tk script by simply invoking the script file itself ? cyu021 Programming 2 10-10-2004 12:00 PM
Script that appends a file to start of other file amp2000 Programming 8 06-30-2002 10:56 AM
Script, Reading a file, When end of file? elibm Programming 2 07-16-2001 12:01 PM


All times are GMT -5. The time now is 02:20 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration