From owner-freebsd-isp Thu Jul 25 04:56:46 1996 Return-Path: owner-isp Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id EAA20345 for isp-outgoing; Thu, 25 Jul 1996 04:56:46 -0700 (PDT) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.19]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id EAA20305; Thu, 25 Jul 1996 04:56:37 -0700 (PDT) Received: (from bde@localhost) by godzilla.zeta.org.au (8.6.12/8.6.9) id VAA09420; Thu, 25 Jul 1996 21:47:08 +1000 Date: Thu, 25 Jul 1996 21:47:08 +1000 From: Bruce Evans Message-Id: <199607251147.VAA09420@godzilla.zeta.org.au> To: davo@chunga.kt.apana.org.au, freebsd-isp@freebsd.org, hackers@freebsd.org Subject: Re: Setup of serial ports Sender: owner-isp@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >for u in 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f 10 11 12 13 14 15 16 17 18 19 1a 1b 1c 1d 1e 1f >do > comcontrol /dev/ttyc$u dtrwait 100 drainwait 180 > stty -f /dev/ttyic$u hupcl crtscts -clocal 38400 > stty -f /dev/ttylc$u hupcl crtscts -clocal 38400 > stty -f /dev/cuaic$u hupcl crtscts -clocal 38400 > stty -f /dev/cualc$u hupcl crtscts -clocal 38400 >done >----------- >I've been told that the lock-state device needs to be set clocal >and not -clocal. >Is this true and if so why? Yes, bits in the lock state devices are flags, not settings, and all flags default to off, so turning them off is usually just confusing. You probably want to leave the initial-state device with its default setting of -clocal and set the lock-state device to clocal to stop users from setting clocal. Bruce