040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync# CDDL HEADER START
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync# The contents of this file are subject to the terms of the
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync# Common Development and Distribution License (the "License").
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync# You may not use this file except in compliance with the License.
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync# See the License for the specific language governing permissions
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync# and limitations under the License.
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync# When distributing Covered Code, include this CDDL HEADER in each
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync# If applicable, add the following below this CDDL HEADER, with the
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync# fields enclosed by brackets "[]" replaced with your own identifying
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync# information: Portions Copyright [yyyy] [name of copyright owner]
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync# CDDL HEADER END
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync# Use is subject to license terms.
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync# This method script manages all vt logins including system
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync# console login.
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync# For modifying parameters passed to ttymon, do not edit
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync# this script. Instead use svccfg(1m) to modify the SMF
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync# repository. For example:
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync# svc:/system/console-login> setprop ttymon/terminal_type = "xterm"
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync [ -n "$val" ] && [ "$val" != "\"\"" ] && echo $1 $val
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync# if this isn't set, recover a little
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync echo "ERROR: ttymon/device cannot be configured to /dev/vt/1."
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync[ -n "$val" -a "$val" != "0" ] && args="$args -t $val"
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsyncif [ -n "$val" ]; then