ttydefs.cleanup.sh revision 1d925b368c0579a57acb90e1e8db63c3a5613790
1d925b368c0579a57acb90e1e8db63c3a5613790mcwalter# CDDL HEADER START
1d925b368c0579a57acb90e1e8db63c3a5613790mcwalter# The contents of this file are subject to the terms of the
1d925b368c0579a57acb90e1e8db63c3a5613790mcwalter# Common Development and Distribution License (the "License").
1d925b368c0579a57acb90e1e8db63c3a5613790mcwalter# You may not use this file except in compliance with the License.
1d925b368c0579a57acb90e1e8db63c3a5613790mcwalter# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1d925b368c0579a57acb90e1e8db63c3a5613790mcwalter# See the License for the specific language governing permissions
1d925b368c0579a57acb90e1e8db63c3a5613790mcwalter# and limitations under the License.
1d925b368c0579a57acb90e1e8db63c3a5613790mcwalter# When distributing Covered Code, include this CDDL HEADER in each
1d925b368c0579a57acb90e1e8db63c3a5613790mcwalter# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1d925b368c0579a57acb90e1e8db63c3a5613790mcwalter# If applicable, add the following below this CDDL HEADER, with the
1d925b368c0579a57acb90e1e8db63c3a5613790mcwalter# fields enclosed by brackets "[]" replaced with your own identifying
1d925b368c0579a57acb90e1e8db63c3a5613790mcwalter# information: Portions Copyright [yyyy] [name of copyright owner]
1d925b368c0579a57acb90e1e8db63c3a5613790mcwalter# CDDL HEADER END
1d925b368c0579a57acb90e1e8db63c3a5613790mcwalter# ident "%Z%%M% %I% %E% SMI"
1d925b368c0579a57acb90e1e8db63c3a5613790mcwalter# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
1d925b368c0579a57acb90e1e8db63c3a5613790mcwalter# Use is subject to license terms.
1d925b368c0579a57acb90e1e8db63c3a5613790mcwalter# If the system is an SPARC-Enterprise system,
1d925b368c0579a57acb90e1e8db63c3a5613790mcwalter# then the /etc/ttydefs file must include the correct console entry.
1d925b368c0579a57acb90e1e8db63c3a5613790mcwalter # Add the crtscts flag for the console settings if needed.
1d925b368c0579a57acb90e1e8db63c3a5613790mcwalter if [ ! "`grep '^console:.* crtscts:' ${TTYDEFS_FILE}`" ] ; then
1d925b368c0579a57acb90e1e8db63c3a5613790mcwalter s/onlcr:/onlcr crtscts:/
1d925b368c0579a57acb90e1e8db63c3a5613790mcwalter# Restore the ttydefs file to the default
1d925b368c0579a57acb90e1e8db63c3a5613790mcwalter if [ "`grep '^console:.* crtscts:' ${TTYDEFS_FILE}`" ] ; then
1d925b368c0579a57acb90e1e8db63c3a5613790mcwalter s/ crtscts:/:/
1d925b368c0579a57acb90e1e8db63c3a5613790mcwalter# Determine action for the appropriate system
1d925b368c0579a57acb90e1e8db63c3a5613790mcwalterPLATFORM_TOKEN=`prtconf -b | awk '/^name:/ { print $2 }'`