mgetty on FreeBSD

Willem van den Bosch (willem@OntheNet.com.au)
Fri, 27 Feb 1998 14:58:50 +0100


I am hoping someone can help me sort out my mgetty on FreeBSD problems.
Having installed "mgetty: experimental test release 1.1.12-Jan27" I am=
 having
problems connecting to my ISP. Logging into my machine seems to work OK.
Allthough I have tried the various CFLAGS options none alter the end result
(see diffs at the end.) when dialing my ISP.

Thanks in advance, from a novice UNIX user
Willem.

when I start pppd I get the following error,

Feb 27 23:54:47 abacus pppd[319]: pppd 2.2.0 started by root, uid 0
Feb 27 23:55:33 abacus pppd[319]: Connect script failed =20
02/27 22:53:23 aa1=A0 waiting...=20
02/27 23:43:44 aa1=A0=A0=A0 select returned 1=20
02/27 23:43:44 aa1=A0=A0 checking lockfiles, locking the line=20
02/27 23:43:44 aa1=A0=A0 makelock(cuaa1) called=20
02/27 23:43:44 aa1=A0=A0 do_makelock: lock=3D'/var/spool/lock/LCK..cuaa1'=20
02/27 23:43:44 aa1=A0=A0 lock made=20
02/27 23:43:44 aa1=A0 waiting for ``RING''=20
02/27 23:43:44 aa1=A0=A0 got: [0d]=20
02/27 23:43:44 aa1=A0=A0=A0 CND: OK[0a]ATDT55555555[0d]=20
02/27 23:43:45 aa1=A0=A0=A0 CND: ATDT55555555=20
02/27 23:43:54 aa1=A0 timeout in chat script, waiting for `RING'=20
02/27 23:43:54 aa1=A0 huh? Junk on the line?=20
02/27 23:43:54 aa1=A0=A0 removing lock file=20
--=20
02/27 23:43:54 aa1=A0 mgetty: experimental test release 1.1.12-Jan27=20
I can connect to my ISP succesfully if I create "/etc/nologin.cuaa1"except
that
when I disconnect, mgetty starts writing continous error messagesto the log
file until I kill mgetty. (see second part of log extract) =20
02/28 00:14:19 aa1=A0=A0=A0 select returned 1=20
02/28 00:14:19 aa1=A0=A0 checking lockfiles, locking the line=20
02/28 00:14:19 aa1=A0=A0 makelock(cuaa1) called=20
02/28 00:14:19 aa1=A0=A0 do_makelock: lock=3D'/var/spool/lock/LCK..cuaa1'=20
02/28 00:14:19 aa1=A0=A0 lock made=20
02/28 00:14:19 aa1=A0 /etc/nologin.cuaa1 exists - do not accept call!=20
02/28 00:14:19 aa1=A0 waiting for ``RING''=20
02/28 00:14:19 aa1=A0=A0 got: [0d]=20
02/28 00:14:19 aa1=A0=A0=A0 CND: OK[0a][0d]ATDT55555555[0d]=20
02/28 00:14:19 aa1=A0=A0=A0 CND: ATDT55555555=20
02/28 00:14:29 aa1=A0 timeout in chat script, waiting for `RING'=20
02/28 00:14:29 ##### rejected, rings=3D0

02/28 00:14:29 aa1=A0=A0 waiting for line to clear (VTIME), read:=20
02/28 00:14:29 aa1=A0=A0 removing lock file=20
02/28 00:14:29 aa1=A0 waiting...=20
02/28 00:14:49 aa1=A0=A0=A0 select returned 1=20
02/28 00:14:49 aa1=A0=A0 checking lockfiles, locking the line=20
02/28 00:14:49 aa1=A0=A0 makelock(cuaa1) called=20
02/28 00:14:49 aa1=A0=A0 do_makelock: lock=3D'/var/spool/lock/LCK..cuaa1'=20
02/28 00:14:49 aa1=A0=A0 lock made=20
02/28 00:14:49 aa1=A0 /etc/nologin.cuaa1 exists - do not accept call!=20
02/28 00:14:49 aa1=A0 waiting for ``RING''=20
02/28 00:14:49 aa1=A0=A0 got:=A0 38400[0d]=20
02/28 00:14:49 aa1=A0=A0=A0 CND: 38400=20
02/28 00:14:49 aa1=A0=A0 CND: ELink caller ID: '38400'[0a]=20
02/28 00:14:59 aa1=A0 timeout in chat script, waiting for `RING'=20
02/28 00:14:59 ##### rejected, rings=3D0

02/28 00:14:59 aa1=A0=A0 waiting for line to clear (VTIME), read:=20

=3D=3D=3D=3D logged in=20
=3D=3D=3D=3D after pppd killed

02/28 00:16:24 aa1=A0=A0 removing lock file=20
02/28 00:16:24 aa1=A0 waiting...=20
02/28 00:16:24 aa1=A0=A0=A0 select returned 1=20
02/28 00:16:24 aa1=A0=A0 checking lockfiles, locking the line=20
02/28 00:16:24 aa1=A0=A0 makelock(cuaa1) called=20
02/28 00:16:24 aa1=A0=A0 do_makelock: lock=3D'/var/spool/lock/LCK..cuaa1'=20
02/28 00:16:24 aa1=A0=A0 lock made=20
02/28 00:16:24 aa1=A0 /etc/nologin.cuaa1 exists - do not accept call!=20
02/28 00:16:24 aa1=A0 tcgetattr failed: Inappropriate ioctl for device=20
02/28 00:16:24 aa1=A0 tcsetattr failed: Inappropriate ioctl for device=20
02/28 00:16:24 aa1=A0 waiting for ``RING''=20
02/28 00:16:24 aa1=A0=A0 got:=20
02/28 00:16:24 aa1=A0 do_chat: error in read(): Input/output error=20
02/28 00:16:24 aa1=A0 tcsetattr failed: Inappropriate ioctl for device=20
02/28 00:16:24 ##### rejected, rings=3D0=20
Alterations to Makefile111c111
< CFLAGS=3D-O2 -Wall -pipe
---
> CFLAGS=3D-O2 -Wall -pipe -DAUTO_PPP
158c158
< #LIBS=3D-lutil # FreeBSD or Linux/GNU libc2
---
> LIBS=3D-lutil # FreeBSD or Linux/GNU libc2
174,175c174,175
< INSTALL=3Dinstall -c -o bin -g bin
< #INSTALL=3Dinstall -c -o root -g wheel # NeXT/BSD
---
> #INSTALL=3Dinstall -c -o bin -g bin
> INSTALL=3Dinstall -c -o root -g wheel # NeXT/BSD
247c247
< PERL=3D"/usr/bin/perl -w"
---
> PERL=3D"/usr/local/bin/perl -w"
252c252
< TKPERL=3D/usr/bin/tkperl
---
> TKPERL=3D/usr/local/bin/tkperl


Alterations to policy.h
49c49
< #define DEFAULT_LOGIN_PROGRAM "/bin/login"
---
> #define DEFAULT_LOGIN_PROGRAM "/usr/bin/login"
99c99
< #define DEVICE_GROUP "modem"
---
> #define DEVICE_GROUP "dialer"
111c111
< /* #define EXEC_FUSER "exec fuser -k -f %s >/dev/null 2>&1" */
---
> #define EXEC_FUSER "exec fuser -k -f %s >/dev/null 2>&1"
168c168
< /* #define SYSTEM "greenie" */
---
> #define SYSTEM "abacus"
224c224
< #define MGETTY_PID_FILE "/etc/mg-pid.%s"
---
> #define MGETTY_PID_FILE "/var/run/mg-pid.%s"
253c253
< #define LOCK "/usr/spool/uucp/LCK..%s"
---
> #define LOCK "/var/spool/lock/LCK..%s"
471c471
< #define FAX_STATION_ID "49 89 xxxxxxxx"
---
> #define FAX_STATION_ID "+61 7 5533 5371"
503c503
< /* #define FAX_MODEM_HANDSHAKE "AT&H3" */
---
> #define FAX_MODEM_HANDSHAKE "AT&K3"
533c533
< #define FAX_MODEM_TTYS "tty4c:tty4d"
---
> #define FAX_MODEM_TTYS "cuaa1"
592c592
< #define MAIL_TO "faxadmin"
---
> #define MAIL_TO "root"



.