Add a new gettytab(5) option - `pl', which if set tells getty that the line
in question is PPP-only line, i.e. no PPP-sequence detection is necessary and PPP login program referenced by `pp' should be started automatically instead of login(1) Feature suggested and sponsored by: United Networks of Ukraine No reply from: re MFC after: 2 weeks
This commit is contained in:
parent
7fc7425df3
commit
9b76604885
@ -159,6 +159,8 @@ hangup line on last close
|
||||
.It "pf num 0 delay"
|
||||
between first prompt and following flush (seconds)
|
||||
.It "pp str unused PPP authentication program"
|
||||
.It "pl bool false don't detect PPP sequence, but start PPP login"
|
||||
program referenced by pp automatically
|
||||
.It "ps bool false line connected to a"
|
||||
.Tn MICOM
|
||||
port selector
|
||||
|
@ -173,4 +173,4 @@ struct gettyflags {
|
||||
#define MB gettyflags[22].value
|
||||
#define HW gettyflags[23].value
|
||||
#define NC gettyflags[24].value
|
||||
|
||||
#define PL gettyflags[25].value
|
||||
|
@ -149,5 +149,6 @@ struct gettyflags gettyflags[] = {
|
||||
{ "mb", 0 }, /* do MDMBUF flow control */
|
||||
{ "hw", 0 }, /* do CTSRTS flow control */
|
||||
{ "nc", 0 }, /* set clocal (no carrier) */
|
||||
{ "pl", 0 }, /* use PPP instead of login(1) */
|
||||
{ 0 }
|
||||
};
|
||||
|
@ -332,7 +332,7 @@ main(int argc, char *argv[])
|
||||
}
|
||||
first_time = 0;
|
||||
|
||||
if (IM && *IM)
|
||||
if (IM && *IM !(PL && PP))
|
||||
putf(IM);
|
||||
if (setjmp(timeout)) {
|
||||
cfsetispeed(&tmode, B0);
|
||||
@ -357,9 +357,9 @@ main(int argc, char *argv[])
|
||||
digit++;
|
||||
*q++ = *p++;
|
||||
}
|
||||
} else
|
||||
} else if (!(PL && PP))
|
||||
rval = getname();
|
||||
if (rval == 2) {
|
||||
if (rval == 2 || (PL && PP)) {
|
||||
oflush();
|
||||
alarm(0);
|
||||
limit.rlim_max = RLIM_INFINITY;
|
||||
|
Loading…
Reference in New Issue
Block a user