From owner-freebsd-questions Mon Sep 14 11:15:38 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA17388 for freebsd-questions-outgoing; Mon, 14 Sep 1998 11:15:38 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from awfulhak.org (awfulhak.force9.co.uk [195.166.136.63]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA17337 for ; Mon, 14 Sep 1998 11:15:25 -0700 (PDT) (envelope-from brian@Awfulhak.org) Received: from woof.lan.awfulhak.org (root@woof.lan.awfulhak.org [172.16.0.7]) by awfulhak.org (8.8.8/8.8.8) with ESMTP id TAA19175; Mon, 14 Sep 1998 19:09:09 +0100 (BST) (envelope-from brian@Awfulhak.org) Received: from woof.lan.awfulhak.org (brian@localhost [127.0.0.1]) by woof.lan.awfulhak.org (8.9.1/8.9.1) with ESMTP id MAA10130; Mon, 14 Sep 1998 12:14:29 +0100 (BST) (envelope-from brian@woof.lan.awfulhak.org) Message-Id: <199809141114.MAA10130@woof.lan.awfulhak.org> X-Mailer: exmh version 2.0.2 2/24/98 To: Alfred Perlstein cc: questions@FreeBSD.ORG Subject: Re: help with mgetty? In-reply-to: Your message of "Sun, 13 Sep 1998 02:31:55 CDT." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 14 Sep 1998 12:14:26 +0100 From: Brian Somers Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG You shouldn't comment things out of /etc/ttys - switch them off instead. If you comment them out, init tends to forget about them and they don't get killed. BTW, why do you want to use mgetty on a null-modem ? Won't getty do, bearing in mind the pp= capability in /etc/gettydefs ? > does anyone here have config files to get mgetty working on a serial line > (null modem) with PPP? > > i'm working on it currently but if anyone could toss me some working > config files i'd appreciate it a lot. > > one of the "problems" i'm having is that it seems that mgetty is trying to > be run twice and if happily filling my logs up :) > > tried these two lines in /etc/ttys: > #cuaa1 "/usr/local/sbin/mgetty -s 115200" unknown on insecure > ttyd1 "/usr/local/sbin/mgetty -s 115200" unknown on insecure > > mgetty logs: > # tail mgetty.* > ==> mgetty.cuaa1 <== > 09/13 02:12:59 aa1 print welcome banner (/etc/issue) > 09/13 02:12:59 aa1 getlogname (AUTO_PPP), read:[0d] > 09/13 02:12:59 aa1 input finished with '\r', setting ICRNL ONLCR > 09/13 02:12:59 aa1 tio_set_flow_control( HARD ) > 09/13 02:12:59 aa1 print welcome banner (/etc/issue) > 09/13 02:12:59 aa1 getlogname (AUTO_PPP), read:[0d] > 09/13 02:13:01 aa1 input finished with '\r', setting ICRNL ONLCR > 09/13 02:13:01 aa1 tio_set_flow_control( HARD ) > 09/13 02:13:01 aa1 print welcome banner (/etc/issue) > 09/13 02:13:01 aa1 getlogname (AUTO_PPP), read: > ==> mgetty.ttyd1 <== > 09/13 02:17:21 yd1 mod: cannot open line /dev/ttyd1: Device busy > 09/13 02:17:21 yd1 open device /dev/ttyd1 failed: Device busy > 09/13 02:17:21 yd1 cannot get terminal line dev=ttyd1, exiting: Device > busy > -- > 09/13 02:17:21 yd1 mgetty: experimental test release 1.1.16-Jul05 > 09/13 02:17:21 yd1 check for lockfiles > 09/13 02:17:21 yd1 locking the line > 09/13 02:17:22 yd1 mod: cannot open line /dev/ttyd1: Device busy > 09/13 02:17:22 yd1 open device /dev/ttyd1 failed: Device busy > 09/13 02:17:22 yd1 cannot get terminal line dev=ttyd1, exiting: Device > busy > > i'm pretty sure this is some problem mgetty is having because of the > device bond thingy in freebsd between cuaa* and ttyd* > > i'm kinda confused as to why i'm told to use cuaa1 in the ttys file, and i > tell it to use cuaa1 but it still freaks out like that, turning up logging > didn't help much :( > > mgetty config file: > > port cuaa1 > debug 9 > fax-id 00 00 000000 > speed 115200 > direct YES > #blocking NO > blocking YES > port-owner uucp > port-group uucp > port-mode 0660 > #toggle-dtr YES > #toggle-dtr-waittime 500 > data-only NO > fax-only NO > modem-type data > #init-chat "" ATS0=0Q0&D3&C1 OK > modem-check-time 3600 > #rings 1 > #answer-chat "" ATA CONNECT \c \r > answer-chat-timeout 80 > autobauding NO > ringback NO > ringback-time 30 > #ignore-carrier false > ignore-carrier true > issue-file /etc/issue > prompt-waittime 500 > login-prompt @!login: > login-time 240 > diskspace 1024 > notify faxadmin > fax-owner uucp > fax-group modem > fax-mode 0660 > > (anything with a # means i've tried it both ways) > > please cc to me as i'm not on thie list > > thank you very much, > Alfred Perlstein - Programmer, HotJobs Inc. - www.hotjobs.com > -- There are operating systems, and then there's FreeBSD. > -- http://www.freebsd.org/ 3.0-current -- Brian , , Don't _EVER_ lose your sense of humour.... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message