LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 10-30-2005, 04:32 PM   #1
jonatito
LQ Newbie
 
Registered: Oct 2005
Distribution: SUSE 10.0 GM
Posts: 7

Rep: Reputation: 0
How to call a script from a system startup script?


I have many problems with my TNT2's configuration under SUSE 10.0 and after answer in the nvidia forum i must follow the instructions:

Quote:
... To solve your problem with 1.0-7174, you can e.g. extract the .run package and copy the makedevices.sh script from the usr/src/nv directory (relative to the newly created directory) to /usr/bin and call it from a system startup script. ...
OK, but how can i call the script from a system startup script?

i say you what i did:
[list=1][*]i've copied the file in /usr/bin[*]i've created a symbolic link to this file in the /etc/rc3.d (and 5) directories with the name S07makedevices.sh[/list=1]

it's that alright? i'm doing ok? or i have to edit any file??

thanks
 
Old 10-30-2005, 05:11 PM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,059

Rep: Reputation: 295Reputation: 295Reputation: 295
Usually the scripts in /etc/rc3.d will link to scripts in /etc/init.d or /etc/rc.d/init.d, but it doesn't matter too much, just so long as the script can be called with a "start" argument and "stop" argument for the S and K links respectively. You probably ought to make the corresponding K symlink if there's any shutdown that needs to be done (some stuff neefds this, some doesn't).

If the issiue is with creating device nodes, a better idea is to modify your uden configuration to make sure the device nodes are created dynamically on boot, but this method will work too.
 
Old 11-04-2005, 01:28 PM   #3
jonatito
LQ Newbie
 
Registered: Oct 2005
Distribution: SUSE 10.0 GM
Posts: 7

Original Poster
Rep: Reputation: 0
thanks btmiller, but that wasn't a solution because makedevices.sh isn't a sysV script (whatever that means). The correct solution is to add a line in boot.local to call the script.
 
Old 11-04-2005, 08:01 PM   #4
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,059

Rep: Reputation: 295Reputation: 295Reputation: 295
That why I said you had to be able to call it with a "start" or "stop" argument (like a System V initialization script) if you wanted to do things that way. Your way, of course, is correct in this case.
 
Old 11-04-2005, 10:23 PM   #5
khaleel5000
Member
 
Registered: Oct 2005
Location: Pakistan
Distribution: Debian,Pclinuxos
Posts: 327

Rep: Reputation: 31
help me

hey jonatito I have an N-VIDIA RIVA TNT2 card can you tell me where you got drivers for it ? and how to istall ? i downloaded its drivers from online update now my linux loads but when the time of showing the login screen comes the screen flashes and goes blank can you help me out with that 2?
 
Old 11-04-2005, 11:06 PM   #6
debianmike
Member
 
Registered: Sep 2005
Posts: 115

Rep: Reputation: 15
can't you also put stuff in /etc/rc.d/rc.local to have them run at bootup?
 
Old 11-05-2005, 02:05 AM   #7
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,059

Rep: Reputation: 295Reputation: 295Reputation: 295
It depends on the distribution ... some set up an rc.local script to run after the other init scripts, and a few don't (Debian at least didn't have one by default, or at least it didn't used to). It's easy anough to add one though (by adding the S99local symlink in the /etc/rc.d/rc3.d and/or /etc/rc.d/rc5.d directory).
 
Old 11-11-2005, 09:40 PM   #8
jonatito
LQ Newbie
 
Registered: Oct 2005
Distribution: SUSE 10.0 GM
Posts: 7

Original Poster
Rep: Reputation: 0
Khaleel5000:
-download the version 7174 or older (because this was the last package that supported TNT2)
-enter in runlevel 3.
- rmmod nvidia
- sh driver-1.0-7174-pkg1.sh -q
And now you must setup the /etc/X11/xorg.conf file (If you have Xfree86 the file is /etc/X11/xfree86.conf or something similar always in the same folder)

in section "module"
add the line Load "glx"
erase (or add # in the first place of the line) the lines Load "GLCore" and Load "dri"

in section "devices"
add the line Driver "nvidia"
erase (or #) the line Driver "nv"

it's all.
You can visit the nvidia forums at www.nvnews.net if you have any question.
The drivers are in www.nvidia.com, else you can find them via google.

Last edited by jonatito; 11-11-2005 at 09:43 PM.
 
  


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
export call in bash script Donald1000 Linux - Software 10 03-12-2009 08:03 PM
'cannot stat' script in /etc/rc.d/, try to run script at startup quintan Linux - Software 1 11-21-2005 02:53 AM
call another script and have the inital script exit mjtice Programming 1 09-11-2005 11:54 AM
My shell script can't seem to call another script kakho Programming 3 04-17-2004 09:21 AM
autostart iptables script on system startup step Linux - Networking 2 03-21-2003 07:25 AM


All times are GMT -5. The time now is 07:55 AM.

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