#!/sbin/runscript # Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/sys-apps/setserial/files/serial-2.17-r4,v 1.3 2011/04/07 05:36:42 vapier Exp $ start() { [ ! -e /etc/serial.conf ] && return 0 grep -v "^#\|^ \|^$\|^stty" /etc/serial.conf | while read device args do ebegin "Setting ${device} to $args" setserial -b ${device} ${args} eend $? done grep "^stty" /etc/serial.conf | while read x device args do ebegin "Setting (stty) ${device} to $args" stty -F ${device} ${args} eend $? done return 0 }