LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Mandriva (https://www.linuxquestions.org/questions/mandriva-30/)
-   -   Mandriva startup scripts (need to add something to startup before X starts) (https://www.linuxquestions.org/questions/mandriva-30/mandriva-startup-scripts-need-to-add-something-to-startup-before-x-starts-398102/)

thunderweasel 12-31-2005 05:31 AM

Mandriva startup scripts (need to add something to startup before X starts)
 
Okay,

In an earlier thread trying to get my display working correctly on my new laptop, I found out that I needed to patch my video bios with the 915resolution utility. So I followed the instructions, installed the program, patched one of the video bios' resolutions to the resolution I need, restarted X, and now my display is fine. Only one problem: the patch isn't permanent. So currently, every time I reboot, I have to restart the X server before my display will use my new resolution. I need to have the 915resolution patch execute before X starts. In the instructions, they said to add the line "usr/sbin/915resolution " to the file "rc.local", but that didn't work (when I open rc.local, it says that it will execute after all the other init scripts). I suppose the patch needs to be executed before the init scripts, so I was wondering if there's another init script I should add that line to, or if I need to make one of my own and if so, where to put it.

Thanks for any help.

aus9 12-31-2005 08:53 AM

2 attempts

1) if its not a script (a executable program) but just a module then add it to
/etc/modeprobe.preload

2) otherwise move your script into the system you may need to boot into ie runlevel 3 for CLI or runlevel 5 for gui.

Have a look at /etc/rc.d.rc5.d

Notice the numbers .....number yours to start at the appropiate time and make sure it is rwx for root to execute.

PS if you did not have a real script just open kwrite with su powers and copy the S99local top line to get the bash command then each line is how you write it in the command line interface save it with root powers rwx then reboot to test.

make sure you know how to move or rename it or use a live cd like kanotix if things ass up

thunderweasel 12-31-2005 07:33 PM

It's definitely an executeable script, so I'll try what you suggested. Thanks for the reply!

thunderweasel 01-01-2006 12:55 AM

FIXED!

As it turns out, the rc.local is symlinked to the file S99local in rc5.d . The problem is that the display manager is named S30dm, so it starts first. I just changed the name of S99local to S01local, and now everything's fine. Thanks for the help.


All times are GMT -5. The time now is 02:56 PM.