xref: /illumos-gate/usr/src/cmd/svc/milestone/vtdaemon (revision aecfc01d1bad84e66649703f7fc2926ef70b34ba)
1*aecfc01dSrui zang - Sun Microsystems - Beijing China#!/sbin/sh
2*aecfc01dSrui zang - Sun Microsystems - Beijing China#
3*aecfc01dSrui zang - Sun Microsystems - Beijing China# CDDL HEADER START
4*aecfc01dSrui zang - Sun Microsystems - Beijing China#
5*aecfc01dSrui zang - Sun Microsystems - Beijing China# The contents of this file are subject to the terms of the
6*aecfc01dSrui zang - Sun Microsystems - Beijing China# Common Development and Distribution License (the "License").
7*aecfc01dSrui zang - Sun Microsystems - Beijing China# You may not use this file except in compliance with the License.
8*aecfc01dSrui zang - Sun Microsystems - Beijing China#
9*aecfc01dSrui zang - Sun Microsystems - Beijing China# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10*aecfc01dSrui zang - Sun Microsystems - Beijing China# or http://www.opensolaris.org/os/licensing.
11*aecfc01dSrui zang - Sun Microsystems - Beijing China# See the License for the specific language governing permissions
12*aecfc01dSrui zang - Sun Microsystems - Beijing China# and limitations under the License.
13*aecfc01dSrui zang - Sun Microsystems - Beijing China#
14*aecfc01dSrui zang - Sun Microsystems - Beijing China# When distributing Covered Code, include this CDDL HEADER in each
15*aecfc01dSrui zang - Sun Microsystems - Beijing China# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16*aecfc01dSrui zang - Sun Microsystems - Beijing China# If applicable, add the following below this CDDL HEADER, with the
17*aecfc01dSrui zang - Sun Microsystems - Beijing China# fields enclosed by brackets "[]" replaced with your own identifying
18*aecfc01dSrui zang - Sun Microsystems - Beijing China# information: Portions Copyright [yyyy] [name of copyright owner]
19*aecfc01dSrui zang - Sun Microsystems - Beijing China#
20*aecfc01dSrui zang - Sun Microsystems - Beijing China# CDDL HEADER END
21*aecfc01dSrui zang - Sun Microsystems - Beijing China#
22*aecfc01dSrui zang - Sun Microsystems - Beijing China#
23*aecfc01dSrui zang - Sun Microsystems - Beijing China# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
24*aecfc01dSrui zang - Sun Microsystems - Beijing China# Use is subject to license terms.
25*aecfc01dSrui zang - Sun Microsystems - Beijing China#
26*aecfc01dSrui zang - Sun Microsystems - Beijing China
27*aecfc01dSrui zang - Sun Microsystems - Beijing China. /lib/svc/share/smf_include.sh
28*aecfc01dSrui zang - Sun Microsystems - Beijing China
29*aecfc01dSrui zang - Sun Microsystems - Beijing Chinaif smf_dont_configure_vt; then
30*aecfc01dSrui zang - Sun Microsystems - Beijing China	/usr/sbin/svcadm disable $SMF_FMRI
31*aecfc01dSrui zang - Sun Microsystems - Beijing China	exit $SMF_EXIT_OK
32*aecfc01dSrui zang - Sun Microsystems - Beijing Chinafi
33*aecfc01dSrui zang - Sun Microsystems - Beijing China
34*aecfc01dSrui zang - Sun Microsystems - Beijing Chinaargs=""
35*aecfc01dSrui zang - Sun Microsystems - Beijing China
36*aecfc01dSrui zang - Sun Microsystems - Beijing Chinaval=`svcprop -p options/hotkeys $SMF_FMRI`
37*aecfc01dSrui zang - Sun Microsystems - Beijing China[ "$val" = "false" ] && args="$args -k"
38*aecfc01dSrui zang - Sun Microsystems - Beijing China
39*aecfc01dSrui zang - Sun Microsystems - Beijing Chinaval=`svcprop -p options/secure $SMF_FMRI`
40*aecfc01dSrui zang - Sun Microsystems - Beijing China[ "$val" = "false" ] && args="$args -s"
41*aecfc01dSrui zang - Sun Microsystems - Beijing China
42*aecfc01dSrui zang - Sun Microsystems - Beijing Chinaval=`svcprop -p options/nodecount $SMF_FMRI`
43*aecfc01dSrui zang - Sun Microsystems - Beijing China[ -n "$val" -a "$val" != "0" ] && args="$args -c $val"
44*aecfc01dSrui zang - Sun Microsystems - Beijing China
45*aecfc01dSrui zang - Sun Microsystems - Beijing Chinaexec /usr/lib/vtdaemon $args
46