LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices

Reply
 
Search this Thread
Old 12-31-2005, 05:31 AM   #1
thunderweasel
Member
 
Registered: Mar 2005
Distribution: Mandriva 2006 Free
Posts: 141

Rep: Reputation: 15
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.
 
Old 12-31-2005, 08:53 AM   #2
aus9
Guru
 
Registered: Oct 2003
Posts: 5,056

Rep: Reputation: Disabled
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
 
Old 12-31-2005, 07:33 PM   #3
thunderweasel
Member
 
Registered: Mar 2005
Distribution: Mandriva 2006 Free
Posts: 141

Original Poster
Rep: Reputation: 15
It's definitely an executeable script, so I'll try what you suggested. Thanks for the reply!
 
Old 01-01-2006, 12:55 AM   #4
thunderweasel
Member
 
Registered: Mar 2005
Distribution: Mandriva 2006 Free
Posts: 141

Original Poster
Rep: Reputation: 15
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.
 
  


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
Startup Scripts jhartney Linux - Newbie 3 01-07-2005 01:35 AM
How To Add Scripts and Options At Startup? thugic Slackware 1 01-05-2005 08:17 PM
Startup scripts MadnessASAP Linux - Software 2 12-15-2004 07:09 PM
Startup scripts celticselph Slackware 5 04-08-2004 07:23 AM
startup scripts mimi Linux - Newbie 6 04-26-2002 03:09 AM


All times are GMT -5. The time now is 11:17 PM.

Main Menu
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