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