vtdaemon revision aecfc01d1bad84e66649703f7fc2926ef70b34ba
79dc091db288c096b6e03888a095477ded84f503vboxsync#!/sbin/sh
fdcd26a52717a87a02415b4b88a8da6ea34a7299vboxsync#
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# CDDL HEADER START
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync#
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# The contents of this file are subject to the terms of the
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# Common Development and Distribution License (the "License").
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# You may not use this file except in compliance with the License.
54259e443abcd8197f7c3158bb7f69457ca1d1davboxsync#
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# or http://www.opensolaris.org/os/licensing.
2581ea3f1f32d09a6e2d443661ed4b01e40bfefavboxsync# See the License for the specific language governing permissions
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# and limitations under the License.
d0ce2837ba92386abdaaa79d6176853ccf959a2fvboxsync#
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# When distributing Covered Code, include this CDDL HEADER in each
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
79dc091db288c096b6e03888a095477ded84f503vboxsync# If applicable, add the following below this CDDL HEADER, with the
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# fields enclosed by brackets "[]" replaced with your own identifying
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# information: Portions Copyright [yyyy] [name of copyright owner]
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync#
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# CDDL HEADER END
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync#
01841c69bef459b750890a41141d55401d92f5d4vboxsync#
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# Use is subject to license terms.
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync#
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync. /lib/svc/share/smf_include.sh
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncif smf_dont_configure_vt; then
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync /usr/sbin/svcadm disable $SMF_FMRI
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync exit $SMF_EXIT_OK
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncfi
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync
79dc091db288c096b6e03888a095477ded84f503vboxsyncargs=""
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync
79dc091db288c096b6e03888a095477ded84f503vboxsyncval=`svcprop -p options/hotkeys $SMF_FMRI`
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync[ "$val" = "false" ] && args="$args -k"
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncval=`svcprop -p options/secure $SMF_FMRI`
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync[ "$val" = "false" ] && args="$args -s"
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncval=`svcprop -p options/nodecount $SMF_FMRI`
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync[ -n "$val" -a "$val" != "0" ] && args="$args -c $val"
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncexec /usr/lib/vtdaemon $args
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync