724e753cb0055b84f896522e8c5ec45ad996c195Michel Normand# Copyright (c) 2004, 2011, Oracle and/or its affiliates. All rights reserved.
724e753cb0055b84f896522e8c5ec45ad996c195Michel Normand# Permission is hereby granted, free of charge, to any person obtaining a
724e753cb0055b84f896522e8c5ec45ad996c195Michel Normand# copy of this software and associated documentation files (the "Software"),
9afe19d634946d50eab30e3b90cb5cebcde39eeaDaniel Lezcano# to deal in the Software without restriction, including without limitation
724e753cb0055b84f896522e8c5ec45ad996c195Michel Normand# the rights to use, copy, modify, merge, publish, distribute, sublicense,
724e753cb0055b84f896522e8c5ec45ad996c195Michel Normand# and/or sell copies of the Software, and to permit persons to whom the
724e753cb0055b84f896522e8c5ec45ad996c195Michel Normand# Software is furnished to do so, subject to the following conditions:
724e753cb0055b84f896522e8c5ec45ad996c195Michel Normand# The above copyright notice and this permission notice (including the next
724e753cb0055b84f896522e8c5ec45ad996c195Michel Normand# paragraph) shall be included in all copies or substantial portions of the
724e753cb0055b84f896522e8c5ec45ad996c195Michel Normand# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
724e753cb0055b84f896522e8c5ec45ad996c195Michel Normand# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
724e753cb0055b84f896522e8c5ec45ad996c195Michel Normand# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
724e753cb0055b84f896522e8c5ec45ad996c195Michel Normand# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
724e753cb0055b84f896522e8c5ec45ad996c195Michel Normand# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
724e753cb0055b84f896522e8c5ec45ad996c195Michel Normand# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
724e753cb0055b84f896522e8c5ec45ad996c195Michel Normand# DEALINGS IN THE SOFTWARE.
724e753cb0055b84f896522e8c5ec45ad996c195Michel NormandUSAGE="Usage: $0 [-d <display>] [-c <class>] <method> [-- <X server arguments>]"
724e753cb0055b84f896522e8c5ec45ad996c195Michel Normand# Default values
2a59a68183e55e38beedb6442938e31eb7d4749cSerge Hallyn# Users must not modify this script to change them - change via SMF properties
00b3c2e2845792face31017e905f9b8b4ea48653Cedric Le Goaterwhile getopts c:d: opt; do
ded1d23faabc31a5bbbf5f52c17423c59f63e23aDaniel Lezcano # Continue with rest of script
80bcb05357a90cc9a2e21e942a2b0a53cddfa7a6Serge Hallyn echo "Invalid method $METHOD"
13f5be6276100761eaeddd77b7b55fbec6b0c9abSerge Hallyn# If the X server is started with SIGUSR1 set to ignore, then it
13f5be6276100761eaeddd77b7b55fbec6b0c9abSerge Hallyn# sends SIGUSR1 to its parent process when it is ready to run
13f5be6276100761eaeddd77b7b55fbec6b0c9abSerge Hallyn(trap '' USR1 ; exec /usr/bin/Xserver $CLASSES :$DISPLAY $* &)