Re: pppd problem.
Sorry about the last partial.
>I think this question was just asked before,
>but I only just joined the mailing list.
Try adding the following as /usr/local/ppp-on (and a similar
/usr/local/ppp-off) owned by root.ppp and perms 04754 (-rwsr-xr--)
/*
* ppp-on.c
*/
#include "config.h"
#include <unistd.h>
void main(void)
{
execl("/usr/sbin/start-stop-daemon","/usr/sbin/start-stop-daemon",
"--start",
"--verbose",
"--exec","/usr/sbin/pppd","--","/dev/modem","38400",
NULL);
perror("ppp-on");
}
For ppp-off, subsitute --stop for --start, and get rid of the
parameters to pppd.
This will be standardized and added to debian Real Soon Now (TM).
(Notice: PEOPLE WHO USE THIS SORT OF THING: Mail to me
<joelh@gnu.ai.mit.edu> so I know that there's a demand!)
If you have more questions, please mail me privately; there's no need
to repeat most of the details on debian-user.
--
http://www.wp.com/joelh --- Joel Ray Holveck --- joelh@gnu.ai.mit.edu
Fourth law of computing:
Anything that can go wro
.signature: segmentation violation -- core dumped
Reply to:
- References:
- pppd problem.
- From: Martin Rheumer <mrheumer@acepia.apana.org.au>