LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 04-23-2005, 11:49 AM   #1
kram
Member
 
Registered: Nov 2004
Distribution: Gentoo
Posts: 33

Rep: Reputation: 15
get a script to run on startup


Hi,
It took a while, but I finally got my wifi card to work in debian sarge. I made a script that configures and activates it with the help of a tutorial.

My question is, how do I get that script to run on startup? I want it to run before gdm starts.

Thanks.
 
Old 04-23-2005, 12:13 PM   #2
masand
Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 58
put that script in /etc/init.d/ and make a symlink for it in /etc/rcx.d/ where x is ur runlevel

regards
 
Old 04-23-2005, 12:56 PM   #3
zuralin
Member
 
Registered: Sep 2003
Distribution: Debian testing/unstable
Posts: 225

Rep: Reputation: 30
man update-rc.d
 
Old 04-23-2005, 03:23 PM   #4
kram
Member
 
Registered: Nov 2004
Distribution: Gentoo
Posts: 33

Original Poster
Rep: Reputation: 15
Cool. It works.

I called the script /etc/init.d/rt2500. Then, I ran

# update-rc.d rt2500 defaults

Now it works like a charm.
Thankx
 
  


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
'cannot stat' script in /etc/rc.d/, try to run script at startup quintan Linux - Software 1 11-21-2005 03:53 AM
Run Script at Startup?? usaf_sp Suse/Novell 5 11-11-2005 02:43 PM
'run as' from rc.5 startup script davee Linux - General 2 03-10-2005 03:36 AM
Run a script at startup iain.ross Linux - Newbie 8 08-27-2004 05:03 PM
How to run script on startup Angelis Linux - General 1 11-16-2003 06:45 AM


All times are GMT -5. The time now is 10:25 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