diff options
author | bde <bde@FreeBSD.org> | 2003-05-04 22:46:33 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 2003-05-04 22:46:33 +0000 |
commit | c0229dba40ef39ed5080e50ef909bd8f397b93eb (patch) | |
tree | 5904092124ad23470eff16aefdefe13183707bdf | |
parent | b9459b93990457e57a289323e1cab3e685ea9b5c (diff) | |
download | FreeBSD-src-c0229dba40ef39ed5080e50ef909bd8f397b93eb.zip FreeBSD-src-c0229dba40ef39ed5080e50ef909bd8f397b93eb.tar.gz |
When resetting to defaults, reset drainwait to the current default pf
`sysctl -n kern.drainwait` instead of to the boot-time default of 300.
-rw-r--r-- | etc/rc.d/serial | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/etc/rc.d/serial b/etc/rc.d/serial index d9802d8..a7975ec 100644 --- a/etc/rc.d/serial +++ b/etc/rc.d/serial @@ -33,7 +33,7 @@ # Change some defaults for serial devices. # Standard defaults are: -# dtrwait 300 drainwait 0 +# dtrwait 300 drainwait `sysctl -n kern.drainwait` # initial cflag from <sys/ttydefaults.h> = cread cs8 hupcl # initial iflag, lflag and oflag all 0 # speed 9600 @@ -47,10 +47,11 @@ default() { ci=$1; shift # call in device identifier co=$1; shift # call out device identifier + drainwait=`sysctl -n kern.drainwait` for i in $* do - comcontrol /dev/tty${ci}${i} dtrwait 300 drainwait 300 + comcontrol /dev/tty${ci}${i} dtrwait 300 drainwait $drainwait 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 |