Christopher Nelson
2006-04-21 17:42:31 UTC
I have an login.config for mgetty that includes:
/AutoPPP/ - a_ppp /etc/ppp/ppplogin
where ppplogin says:
#!/bin/sh
stty -echo
/usr/sbin/pppd silent auth -chap +pap login
I assume that when invoked this way, pppd will read /etc/ppp/options
but how does it -- or does it? -- know the device it's being invoked
for? If I said:
pppd ... ttyS00
I'd expect it to process /etc/ppp/options.ttyS00. When invoked from
ppplogin, there seems to be no device so I don't know quite what to
expect. Is there something about being invoked from mgetty that lets
it know what device it's on?
Chris
/AutoPPP/ - a_ppp /etc/ppp/ppplogin
where ppplogin says:
#!/bin/sh
stty -echo
/usr/sbin/pppd silent auth -chap +pap login
I assume that when invoked this way, pppd will read /etc/ppp/options
but how does it -- or does it? -- know the device it's being invoked
for? If I said:
pppd ... ttyS00
I'd expect it to process /etc/ppp/options.ttyS00. When invoked from
ppplogin, there seems to be no device so I don't know quite what to
expect. Is there something about being invoked from mgetty that lets
it know what device it's on?
Chris