i.dialers revision cdf0c1d55d9b3b6beaf994835440dfb01aef5cf0
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce# CDDL HEADER START
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce# The contents of this file are subject to the terms of the
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce# Common Development and Distribution License (the "License").
027e89d47af308db4b41761ca9f847c026b63ec8Andreas Gustafsson# You may not use this file except in compliance with the License.
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce# See the License for the specific language governing permissions
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce# and limitations under the License.
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce# When distributing Covered Code, include this CDDL HEADER in each
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce# If applicable, add the following below this CDDL HEADER, with the
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce# fields enclosed by brackets "[]" replaced with your own identifying
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce# information: Portions Copyright [yyyy] [name of copyright owner]
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce# CDDL HEADER END
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce#ident "%Z%%M% %I% %E% SMI"
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce# Use is subject to license terms.
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce if [ ! -f $dest ] ; then
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce # add USR Courier entry
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce if [ $? != 0 ] ; then
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce sed -n '/#.*USR Courier/,/^usrv32-nec/p' $src >> \
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce # add it after the hayes entry if it exists,
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce # otherwise add it at the end.
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce if [ $? = 0 ] ; then
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce # add Telebit T1600 entry
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce if [ $? != 0 ] ; then
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce sed -n '/#.*Telebit T1600/,/^tb9600-nec/p' $src >> \
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce # add it after the tbfast entry if it exists,
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce # otherwise add it at the end.
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce if [ $? = 0 ] ; then
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce # update STTY of usrv32-ec
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce if [ $? = 0 ] ; then
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce sed "/^usrv32-ec[ ]/s/crtscts/crtscts,crtsxoff/" \
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce # update STTY of usrv32-nec
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce if [ $? = 0 ] ; then
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce sed "/^usrv32-nec[ ]/s/crtscts/crtscts,crtsxoff/" \
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce # update STTY of tb9600-ec
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce if [ $? = 0 ] ; then
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce sed "/^tb9600-ec[ ]/s/crtscts/crtscts,crtsxoff/" \
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce # update STTY of tb9600-nec
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce if [ $? = 0 ] ; then