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.
© 2008-2013 ABATAPA WL-500gP/128M / Asus RT-N16 / USB Flash / VLAN / PPPoE / VoIP / nShaper / NAS: iStor is607, Sarotech NAS-20, QNap 109 Pro / NFS / Ïðèíòåð / etc
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 $@".