From owner-freebsd-questions Wed Jul 10 02:45:51 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id CAA27385 for questions-outgoing; Wed, 10 Jul 1996 02:45:51 -0700 (PDT) Received: from diablo.ppp.de (diablo.ppp.de [193.141.101.34]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id CAA27364 for ; Wed, 10 Jul 1996 02:45:42 -0700 (PDT) Received: from allegro.lemis.de by diablo.ppp.de with smtp (Smail3.1.28.1 #1) id m0udvmW-000QbxC; Wed, 10 Jul 96 11:42 MET DST From: grog@lemis.de (Greg Lehey) Organisation: LEMIS, Schellnhausen 2, 36325 Feldatal, Germany Phone: +49-6637-919123 Fax: +49-6637-919122 Received: (grog@localhost) by allegro.lemis.de (8.6.9/8.6.9) id KAA22135; Wed, 10 Jul 1996 10:29:01 +0200 Message-Id: <199607100829.KAA22135@allegro.lemis.de> Subject: Re: getty(8) don't show `login:' prompt To: candy@fct.kgc.co.jp (Toshihiro Kanda) Date: Wed, 10 Jul 1996 10:29:01 +0200 (MET DST) Cc: questions@FreeBSD.org (FreeBSD Questions) In-Reply-To: <199607090904.SAA01318@xxx.fct.kgc.co.jp> from "Toshihiro Kanda" at Jul 9, 96 06:04:17 pm X-Mailer: ELM [version 2.4 PL23] MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-questions@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk Toshihiro Kanda writes: > > I'm using FreeBSD 2.1R. I wanted to login via modem, but got > difficulty... Getty didn't show `login:' to remote terminal. > > After a short hacking /usr/src/libexec/getty/, I found a delay fixes > this problem. > > -------8<---------------8<---------------8<-------- > *** main.c.orig Tue Jul 9 17:25:31 1996 > --- main.c Tue Jul 9 17:24:54 1996 > *************** > *** 176,181 **** > --- 176,184 ---- > sleep(60); > } > login_tty(i); > + #if 1 /* XXX Need delay to continue... I don't know why */ > + sleep(1); > + #endif > } > } > -------8<---------------8<---------------8<-------- No, that looks pretty good to me. In my getty (heavily modified), I have: if (slowmodem) { sleep (slowmodem); /* give modem a chance to wake up */ tcflush (i, TCIFLUSH); /* and throw out any junk */ } >From the man page: -S [delay] causes getty to delay seconds after connection has been established. This is for use with modems which are not ready to communicate with the remote site as soon as they are connected. may be omitted and defaults to 2. Greg