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.
Printable View
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.
If you mean "/sbin/rc $@" (since originally the /tmp/ppp/ip-up script is linked to /sbin/rc), then I have already tried it and it does not work. I think the /sbin/rc script does things like setting up masquerading, updating /tmp/resolve.conf, updating time, etc. None of these are executed if called like "/sbin/rc $@".