I want to run a script or program immediately after my ppp interface is up. How do I do that?

Updated -

The network control scripts in /etc/sysconfig/network-scripts allow you to add a script that will run after the ppp device is up.

For example, looking at the file /etc/sysconfig/network-scripts/ifup-ppp, which controls ppp interfaces, the first few lines are:

#!/bin/bash

. /etc/init.d/functions

cd /etc/sysconfig/network-scripts
. network-functi...

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.