LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-27-2004, 12:35 PM   #1
simonw
LQ Newbie
 
Registered: Oct 2004
Posts: 8

Rep: Reputation: 0
How to add a command to run during Mandrake 10.1 boot up


Hi,

I have managed to install the drivers to connect my Bt Voyager 100 modem to Aol broadband. To make a connection I have to run the Startmodem command in a ternimal window. Is there anyway that I can incorporate this command so that is executed during the Mandrakes boot up routine. Hope you can help as I'm very new to linux !

Thanks

Simon
 
Old 10-27-2004, 01:22 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Locate a rc.local under /etc and add a call to that
modem startup script there.


Cheers,
Tink
 
Old 10-27-2004, 01:36 PM   #3
simonw
LQ Newbie
 
Registered: Oct 2004
Posts: 8

Original Poster
Rep: Reputation: 0
Thanks Tink

Can't find RC.local. What I have got is RC0.d through to RC6.d. Have you any ideas which one.

Thanks

Simon
 
Old 10-27-2004, 01:46 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Odd ... I could have sworn that there's a
/etc/rc.d/rc.local in mdk as well ... don't have
one installed to verify this, though.


Cheers,
Tink
 
Old 10-27-2004, 02:31 PM   #5
simonw
LQ Newbie
 
Registered: Oct 2004
Posts: 8

Original Poster
Rep: Reputation: 0
Thanks I find the file. Could you guide me a bit as I'm very new to linux. I run the startmodem script as a root user in a terminal window. any ideas what sort of line I should add to the rc.local file to make it execute the startmodem command on boot up.

Thanks

Simon
 
Old 10-27-2004, 02:35 PM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Edit the file and slap something like
/path/to/Startmodem
in it... that's all there is to it, since most system
init scripts initially run as root.


Cheers,
Tink
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
run command on boot FNC Linux - General 1 11-13-2005 05:29 AM
Run a command at boot Ace2005 Debian 3 07-24-2005 09:09 AM
add a program to run in vty/console at boot? carl0ski Mandriva 3 11-23-2004 06:07 AM
where do i add a command to make it run on boot stuart Linux - Newbie 4 06-21-2004 06:03 PM
Run command on boot id10t Red Hat 1 01-28-2004 02:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:42 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration