[NTLUG:Discuss] Magically appearing pppd parameters. *SOLVED*
Richard Geoffrion
ntlug at rain4us.net
Thu Sep 15 14:27:27 CDT 2005
Richard Geoffrion wrote:
>Problem: pppd gets "unrecognized option '--' " passed to it when being
>called from agetty.
>
>
>
I'm gonna snip the rest of this. Hopefully any poor soul searching for
this answer will find it as a reply in the archives.
OK...here was the final work-around / solution.
The GettyArgs in use is:
GettyArgs: "-n -l /etc/ppp/run %l %s"
with (-n) no login prompt, (-l) execute /etc/ppp/run as the login
program with (%l) tty passed from faxgetty and (%s) baudrate passed from
faxgetty
the /etc/ppp/run file consists of two magical lines.
#!/bin/sh
/usr/sbin/pppd
And that is it!
Many thanks to " /dev/rob0 " for his assistance in this..and
ultimately suggesting and correcting the /etc/ppp/run file.
Question: Why DID the #!/bin/sh line have to be in the file so the
script would run?
--
Richard
More information about the Discuss
mailing list