1 --- getty_ps-2.0.7j/man/getty.1.hangup Sat Jun 10 13:28:58 2000
2 +++ getty_ps-2.0.7j/man/getty.1 Sat Jun 10 13:30:50 2000
17 is specified in the defaults file), it will force a hangup on the line
18 -by setting the speed to zero. Giving
19 +by setting the speed to zero. You can specify the amount of time
20 +to leave the line on-hook during a hangup by specifying the
22 +flag followed by a number of seconds (or using
23 +.BI HANGUPSECS = hangupsecs
24 +in the defaults file). Giving
27 on the command line (or using
28 --- getty_ps-2.0.7j/main.c.hangup Sat Jun 10 13:23:59 2000
29 +++ getty_ps-2.0.7j/main.c Sat Jun 10 13:28:11 2000
31 waitfor = (char *) NULL; /* no waitfor string */
32 Connect = (char *) NULL; /* no connect string */
33 defname = (char *) NULL; /* no defaults file */
35 + HangUpSecs = 2; /* # of seconds to hangup the line */
37 issue = ISSUE; /* login banner */
40 /* first, the command line
43 - while((c = getopt(count, args, "RC:D:ac:d:hr:t:w:")) != EOF) {
44 + while((c = getopt(count, args, "RC:D:ac:d:hr:t:w:H:")) != EOF) {
53 + HangUpSecs = (unsigned) atoi(optarg);
60 if((p = defvalue(def, "WAITCHAR")) && (strequal(p, "YES")))
62 + if((p = defvalue(def, "HANGUPSECS")))
63 + HangUpSecs = (unsigned) atoi(p);
64 + if (HangUpSecs < 2 || HangUpSecs > 600) {
65 + logerr("Value for HANGUPSECS on %s should be between 2 and 600 secs", Device);
68 if((p = defvalue(def, "DELAY"))) delay = (unsigned) atoi(p);
69 if((p = defvalue(def, "TIMEOUT"))) TimeOut = atoi(p);
70 if((p = defvalue(def, "CONNECT"))) Connect = p;
74 (void) ioctl(fd, TCSETSF, &termio);
75 - if(! NoHangUp) sleep(2);
76 + if(! NoHangUp) sleep(HangUpSecs);
77 gtab = gtabvalue(GtabId, G_FORCE);
78 settermio(&(gtab->itermio), INITIAL);
80 --- getty_ps-2.0.7j/extern.h.hangup Sat Jun 10 13:28:16 2000
81 +++ getty_ps-2.0.7j/extern.h Sat Jun 10 13:28:45 2000
83 EXTERN char *SysName; /* nodename of system */
84 EXTERN int TimeOut; /* timeout value from command line */
85 EXTERN char *Version; /* value of VERSION */
86 +EXTERN int HangUpSecs; /* Number of seconds to hang up the line */
89 EXTERN boolean WarnCase; /* controls display of bad case message */