Linux - NetworkingThis 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.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.