Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
05-22-2004, 10:04 AM
|
#1
|
|
Member
Registered: Jan 2003
Location: AU
Distribution: Whatever - mainly Red Hat
Posts: 32
Rep:
|
ppp0 and startup script
The scenerio:
i am running Red Hat 9.0
i connect to the internet with a dial up 56k modem
i created the connection settings with kpppd but got rid of the GUI
now i connect by typing ifup ppp0
i want to make a script run automatically as soon as i have sucessfully connected to the internet.
I have no idea how to do this, i have read things about making if-up.local the script and putting it somewhere but im not sure where or if that is even right
Can anyone tell me where i should reference the script so it executes after a login?
Thanks in Advance :-)
|
|
|
|
05-22-2004, 10:58 PM
|
#2
|
|
Senior Member
Registered: Nov 2001
Location: Budapest, Hungary
Distribution: SuSE 6.4-11.3, Dsl linux, FreeBSD 4.3-6.2, Mandrake 8.2, Redhat, UHU, Debian Etch
Posts: 1,126
Rep:
|
Do you have a script /etc/ppp/ip-up? (And also ip-down, which is just a symlink to ip-up?)
I used to start and stop squid from that script.
Just have a look at that script - it is easy to read if you have some bash knowledge - and you will see where to insert the command calling your script.
Last edited by J_Szucs; 05-22-2004 at 10:59 PM.
|
|
|
|
05-23-2004, 10:35 AM
|
#3
|
|
LQ Newbie
Registered: Aug 2003
Posts: 3
Rep:
|
similar to what J_Szucs says, I know RedHat has that file and also /etc/ppp/ip-up.local, this is the file they recommend you add required scripts to run once the pppd is running.
Regards
Dave
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 03:14 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|