1*4746Srica#!/bin/ksh 2*4746Srica# 3*4746Srica# CDDL HEADER START 4*4746Srica# 5*4746Srica# The contents of this file are subject to the terms of the 6*4746Srica# Common Development and Distribution License (the "License"). 7*4746Srica# You may not use this file except in compliance with the License. 8*4746Srica# 9*4746Srica# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10*4746Srica# or http://www.opensolaris.org/os/licensing. 11*4746Srica# See the License for the specific language governing permissions 12*4746Srica# and limitations under the License. 13*4746Srica# 14*4746Srica# When distributing Covered Code, include this CDDL HEADER in each 15*4746Srica# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16*4746Srica# If applicable, add the following below this CDDL HEADER, with the 17*4746Srica# fields enclosed by brackets "[]" replaced with your own identifying 18*4746Srica# information: Portions Copyright [yyyy] [name of copyright owner] 19*4746Srica# 20*4746Srica# CDDL HEADER END 21*4746Srica# 22*4746Srica# Copyright 2007 Sun Microsystems, Inc. All rights reserved. 23*4746Srica# Use is subject to license terms. 24*4746Srica# 25*4746Srica#ident "%Z%%M% %I% %E% SMI" 26*4746Srica# 27*4746Srica 28*4746Sricauser=$1 29*4746Sricaprogram=$2 30*4746Sricadisplay=$3 31*4746Srica 32*4746Srica# Wait for the local zone automounter to come up 33*4746Srica# by checking for the auto_home trigger being loaded 34*4746Srica 35*4746Sricawhile [ ! -d /home/${user} ]; do 36*4746Sricasleep 1 37*4746Sricadone 38*4746Srica 39*4746Srica# Now, run the command you specified as the specified user 40*4746Srica 41*4746Sricasu - ${user} -c "${program} -display ${display}" 42*4746Srica 43