From b269db3788caf2fc710b7ebadf9938855b8fae44 Mon Sep 17 00:00:00 2001 From: wollman Date: Mon, 19 Sep 1994 21:28:28 +0000 Subject: Install /etc from the same source as /usr/share/examples/etc (mostly). --- share/examples/etc/rc.serial | 91 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 91 insertions(+) create mode 100644 share/examples/etc/rc.serial (limited to 'share/examples/etc/rc.serial') diff --git a/share/examples/etc/rc.serial b/share/examples/etc/rc.serial new file mode 100644 index 0000000..7f042e8 --- /dev/null +++ b/share/examples/etc/rc.serial @@ -0,0 +1,91 @@ +# Change some defauls for serial devices. +# Standard defaults are: +# dtrwait 300 +# initial cflag from = cread cs8 hupcl +# initial iflag, lflag and oflag all 0 +# speed 9600 +# special chars from +# nothing locked +# except for serial consoles the initial iflag, lflag and oflag are from +# and clocal is locked on. + +default() { + # Reset everything changed by the other functions to initial defaults. + for i in $* + do + comcontrol /dev/ttyd$i dtrwait 300 + stty