From owner-freebsd-questions Sat Sep 21 23:25:28 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id XAA07502 for questions-outgoing; Sat, 21 Sep 1996 23:25:28 -0700 (PDT) Received: from gdi.uoregon.edu (cisco-ts10-line1.uoregon.edu [128.223.150.99]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id XAA07476 for ; Sat, 21 Sep 1996 23:25:25 -0700 (PDT) Received: from localhost (dwhite@localhost) by gdi.uoregon.edu (8.7.5/8.6.12) with SMTP id XAA00296; Sat, 21 Sep 1996 23:25:39 -0700 (PDT) Date: Sat, 21 Sep 1996 23:25:39 -0700 (PDT) From: Doug White Reply-To: dwhite@resnet.uoregon.edu To: Leonard Chung cc: questions@freebsd.org Subject: Re: Default speed of cuaa*? In-Reply-To: <1.5.4.32.19960922024430.00672bec@pacbell.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Sat, 21 Sep 1996, Leonard Chung wrote: > Is there any way to set the default speed of the tunnel devices? I have a > shell script that reads and writes to a 2400 BPS modem, but since the > default speed of the /dev/cuaa0 device seems to be 9600 BPS, the modem and > the script can't communicate. For example, if I type "cu -l /dev/cuaa0 -s > 2400", then I can talk to the modem fine. But if I type "cu -l /dev/cuaa0" > and don't specify a speed, then the port speed gets set to 9600. Is there > any way I can change the default speed, or set the speed of the cuaa device > from within a shell script? You can make the changes permanent (until the next reboot) by using stty to change the settings of the /dev/cuala0 device. cuala is used as a 'template' for settings; modifying it modifies all future references to /dev/cuaa0. Doug White | University of Oregon Internet: dwhite@resnet.uoregon.edu | Residence Networking Assistant http://gladstone.uoregon.edu/~dwhite | Computer Science Major