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 12-19-2002, 12:41 PM   #1
psychoholic
Member
 
Registered: Nov 2002
Location: Manchester, UK
Distribution: Slackware 10.2
Posts: 52

Rep: Reputation: 15
Writing a start up script


Hello everybody!

I have a really simple and very newbie question. Using the opensource drivers for my Acatel USB modem I have finally got in working and have Internet working my PC! YAY!

Unfortunatley everytime the PC boots into Linux I have to su to root and type in

modem_run -m -f /usr/share/speedtouch/mgmt.o
pppd call adsl

This is a bit boring and lengthy so I wrote a script which runs both lines straight away using.

However I still have to su to root b4 i do this.

In short I would like this script to run or the two lines themslves to run on boot of the computer.

Is there a nice easy way of doing this? I suppose i am looking for the Linux equivilant of a windows startup folder or something... but I dont know where to begin to find it...

I'm sure someone can laugh at how simple a question this is and help me!

Thanks

Tom
 
Old 12-19-2002, 12:47 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,568

Rep: Reputation: 164Reputation: 164
You can simply add the lines to your /etc/rd.d/rc.local. Or create your own starting script (like ones in /etc/rc.d/rc?.d/), but the first method is easier.
 
  


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
Need help writing a script wswartz Linux - Software 3 04-28-2004 04:35 PM
Help writing a rm script VisionZ Linux - Newbie 17 03-24-2004 08:15 AM
Help Writing a script. teeth44 Programming 2 10-14-2003 01:00 PM
Writing a Script Nyc0n Linux - General 2 05-27-2002 08:21 PM
writing a Script spanky5125 Linux - Security 5 01-08-2002 10:22 AM


All times are GMT -5. The time now is 05:46 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration