Bug#762626: fixing it ...

2014-09-29 Thread lee
Marco d'Itri writes: > On Sep 29, lee wrote: > >> IMO that's arguable. The idea is to be able to run a script when a >> connection is established and another one when a connection is >> terminated. A modem is mentioned in the man page merely as an example. > No, it's not. The idea is to run ch

Bug#762626: fixing it ...

2014-09-29 Thread lee
m...@linux.it (Marco d'Itri) writes: > On Sep 28, lee wrote: > >> as far as I can see, the connect/disconnect scripts are only called when >> modems are involved and not for ppoe connections. > This is not what my logs of when I still used PPPoE say: The logging output is very different here, as

Bug#762626: fixing it ...

2014-09-28 Thread Marco d'Itri
On Sep 29, lee wrote: > IMO that's arguable. The idea is to be able to run a script when a > connection is established and another one when a connection is > terminated. A modem is mentioned in the man page merely as an example. No, it's not. The idea is to run chat to do things to your modem.

Bug#762626: fixing it ...

2014-09-28 Thread lee
Please check out https://github.com/lee-/pppd I have this version currently running, and it does call the disconnect script when I pull the plug. However, it needs more work --- maybe I'll have time next weekend. PS: Sep 28 21:43:20 charon pppd[16936]: Plugin rp-pppoe.so loaded. Sep 28 21:4

Bug#762626: fixing it ...

2014-09-28 Thread Marco d'Itri
On Sep 28, lee wrote: > as far as I can see, the connect/disconnect scripts are only called when > modems are involved and not for ppoe connections. This is not what my logs of when I still used PPPoE say: May 6 19:57:00 bongo pppd[31672]: pppd 2.4.5 started by root, uid 0 May 6 19:57:00 bongo

Bug#762626: fixing it ...

2014-09-28 Thread lee
Hi, as far as I can see, the connect/disconnect scripts are only called when modems are involved and not for ppoe connections. I think adding calls of 'device_script(program, in, out, dont_wait)' along the lines of 'device_script(program, 0, 0, 1)' into 'PPPOEConnectDevice(void)' and 'mp_bundle_t