LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   suse 9.0 script file placement? (https://www.linuxquestions.org/questions/linux-software-2/suse-9-0-script-file-placement-133092/)

rlange 01-09-2004 11:27 AM

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???

:scratch:
TIA

david_ross 01-09-2004 03:01 PM

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.

nmayotte 01-09-2004 03:37 PM

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.

rlange 01-10-2004 07:39 AM

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

david_ross 01-10-2004 07:47 AM

That is correct according to:
man hdparm

levenger 01-12-2004 05:24 PM

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.


All times are GMT -5. The time now is 08:18 PM.