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
9a5444fa22
commit
2435c6cf8e
@ -159,6 +159,8 @@ hangup line on last close
|
|||||||
.It "pf num 0 delay"
|
.It "pf num 0 delay"
|
||||||
between first prompt and following flush (seconds)
|
between first prompt and following flush (seconds)
|
||||||
.It "pp str unused PPP authentication program"
|
.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"
|
.It "ps bool false line connected to a"
|
||||||
.Tn MICOM
|
.Tn MICOM
|
||||||
port selector
|
port selector
|
||||||
|
@ -173,4 +173,4 @@ struct gettyflags {
|
|||||||
#define MB gettyflags[22].value
|
#define MB gettyflags[22].value
|
||||||
#define HW gettyflags[23].value
|
#define HW gettyflags[23].value
|
||||||
#define NC gettyflags[24].value
|
#define NC gettyflags[24].value
|
||||||
|
#define PL gettyflags[25].value
|
||||||
|
@ -149,5 +149,6 @@ struct gettyflags gettyflags[] = {
|
|||||||
{ "mb", 0 }, /* do MDMBUF flow control */
|
{ "mb", 0 }, /* do MDMBUF flow control */
|
||||||
{ "hw", 0 }, /* do CTSRTS flow control */
|
{ "hw", 0 }, /* do CTSRTS flow control */
|
||||||
{ "nc", 0 }, /* set clocal (no carrier) */
|
{ "nc", 0 }, /* set clocal (no carrier) */
|
||||||
|
{ "pl", 0 }, /* use PPP instead of login(1) */
|
||||||
{ 0 }
|
{ 0 }
|
||||||
};
|
};
|
||||||
|
@ -332,7 +332,7 @@ main(int argc, char *argv[])
|
|||||||
}
|
}
|
||||||
first_time = 0;
|
first_time = 0;
|
||||||
|
|
||||||
if (IM && *IM)
|
if (IM && *IM !(PL && PP))
|
||||||
putf(IM);
|
putf(IM);
|
||||||
if (setjmp(timeout)) {
|
if (setjmp(timeout)) {
|
||||||
cfsetispeed(&tmode, B0);
|
cfsetispeed(&tmode, B0);
|
||||||
@ -357,9 +357,9 @@ main(int argc, char *argv[])
|
|||||||
digit++;
|
digit++;
|
||||||
*q++ = *p++;
|
*q++ = *p++;
|
||||||
}
|
}
|
||||||
} else
|
} else if (!(PL && PP))
|
||||||
rval = getname();
|
rval = getname();
|
||||||
if (rval == 2) {
|
if (rval == 2 || (PL && PP)) {
|
||||||
oflush();
|
oflush();
|
||||||
alarm(0);
|
alarm(0);
|
||||||
limit.rlim_max = RLIM_INFINITY;
|
limit.rlim_max = RLIM_INFINITY;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user