summaryrefslogtreecommitdiffstats
path: root/etc/rc.serial
diff options
context:
space:
mode:
authorsheldonh <sheldonh@FreeBSD.org>1999-08-25 16:01:45 +0000
committersheldonh <sheldonh@FreeBSD.org>1999-08-25 16:01:45 +0000
commit8cec588c449f00982159304c76482d87d5194f0d (patch)
treec5b950c555128460f4c0f03bc9b54c807a922506 /etc/rc.serial
parentde5fc0125907bb6de177202bfa1b843589e80011 (diff)
downloadFreeBSD-src-8cec588c449f00982159304c76482d87d5194f0d.zip
FreeBSD-src-8cec588c449f00982159304c76482d87d5194f0d.tar.gz
Style clean-up:
* All variables are now embraced: ${foo} * All comparisons against some value now take the form: [ "${foo}" ? "value" ] where ? is a comparison operator * All empty string tests now take the form: [ -z "${foo}" ] * All non-empty string tests now take the form: [ -n "${foo}" ] Submitted by: jkh
Diffstat (limited to 'etc/rc.serial')
-rw-r--r--etc/rc.serial48
1 files changed, 24 insertions, 24 deletions
diff --git a/etc/rc.serial b/etc/rc.serial
index cead543..4b508a7 100644
--- a/etc/rc.serial
+++ b/etc/rc.serial
@@ -1,5 +1,5 @@
#!/bin/sh
-# $Id: rc.serial,v 1.10 1998/03/13 13:33:09 danny Exp $
+# $Id: rc.serial,v 1.11 1998/03/13 22:03:03 danny Exp $
# Change some defaults for serial devices.
# Standard defaults are:
@@ -20,11 +20,11 @@ default() {
for i in $*
do
- comcontrol /dev/tty$ci$i dtrwait 300 drainwait 0
- stty </dev/ttyi$ci$i -clocal crtscts hupcl 9600 reprint ^R
- stty </dev/ttyl$ci$i -clocal -crtscts -hupcl 0
- stty </dev/cuai$co$i -clocal crtscts hupcl 9600 reprint ^R
- stty </dev/cual$co$i -clocal -crtscts -hupcl 0
+ comcontrol /dev/tty${ci}${i} dtrwait 300 drainwait 0
+ stty < /dev/ttyi${ci}${i} -clocal crtscts hupcl 9600 reprint ^R
+ stty < /dev/ttyl${ci}${i} -clocal -crtscts -hupcl 0
+ stty < /dev/cuai${co}${i} -clocal crtscts hupcl 9600 reprint ^R
+ stty < /dev/cual${co}${i} -clocal -crtscts -hupcl 0
done
}
@@ -37,14 +37,14 @@ maybe() {
for i in $*
do
# Don't use ^R; it breaks bash's ^R when typed ahead.
- stty </dev/ttyi$ci$i reprint undef
- stty </dev/cuai$co$i reprint undef
+ stty < /dev/ttyi${ci}${i} reprint undef
+ stty < /dev/cuai${co}${i} reprint undef
# Lock clocal off on dialin device for security.
- stty </dev/ttyl$ci$i clocal
+ stty < /dev/ttyl${ci}${i} clocal
# Lock the speeds to use old binaries that don't support them.
# Any legal speed works to lock the initial speed.
- stty </dev/ttyl$ci$i 300
- stty </dev/cual$co$i 300
+ stty < /dev/ttyl${ci}${i} 300
+ stty < /dev/cual${co}${i} 300
done
}
@@ -57,13 +57,13 @@ modem() {
for i in $*
do
# may depend on modem
- comcontrol /dev/tty$ci$i dtrwait 100 drainwait 180
+ comcontrol /dev/tty${ci}${i} dtrwait 100 drainwait 180
# Lock crtscts on.
# Speed reasonable for V42bis.
- stty </dev/ttyi$ci$i crtscts 57600
- stty </dev/ttyl$ci$i crtscts
- stty </dev/cuai$co$i crtscts 57600
- stty </dev/cual$co$i crtscts
+ stty < /dev/ttyi${ci}${i} crtscts 57600
+ stty < /dev/ttyl${ci}${i} crtscts
+ stty < /dev/cuai${co}${i} crtscts 57600
+ stty < /dev/cual${co}${i} crtscts
done
}
@@ -77,10 +77,10 @@ mouse() {
do
# Lock clocal on, hupcl off.
# Standard speed for Microsoft mouse.
- stty </dev/ttyi$ci$i clocal -hupcl 1200
- stty </dev/ttyl$ci$i clocal hupcl
- stty </dev/cuai$co$i clocal -hupcl 1200
- stty </dev/cual$co$i clocal hupcl
+ stty < /dev/ttyi${ci}${i} clocal -hupcl 1200
+ stty < /dev/ttyl${ci}${i} clocal hupcl
+ stty < /dev/cuai${co}${i} clocal -hupcl 1200
+ stty < /dev/cual${co}${i} clocal hupcl
done
}
@@ -95,12 +95,12 @@ terminal() {
ci=$1; shift
co=$1; shift
- modem $ci $co $*
+ modem ${ci} ${co} $*
for i in $*
do
- comcontrol /dev/tty$ci$i dtrwait 0
- stty </dev/ttyi$ci$i 115200
- stty </dev/cuai$co$i 115200
+ comcontrol /dev/tty${ci}${i} dtrwait 0
+ stty < /dev/ttyi${ci}${i} 115200
+ stty < /dev/cuai${co}${i} 115200
done
}
OpenPOWER on IntegriCloud