Is there anyway to run a custom script in addition to the built-in one when ppp connects/disconnects? I know that ip-up and ip-down are symlinked to /sbin/rc which is a binary file. I would like to run the custom script after the call to /sbin/rc.
The solution is elementary.
Replace symlinks /tmp/ppp/ip-down and /tmp/ppp/ip-up with your script. In the script, before or after, depending on the requirements, call the old script with parameters: