fsadmin revision 729
729N/A#! /usr/bin/ksh93
729N/A#
729N/A# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
729N/A# Use is subject to license terms.
729N/A#
729N/A# Permission is hereby granted, free of charge, to any person obtaining a
729N/A# copy of this software and associated documentation files (the
729N/A# "Software"), to deal in the Software without restriction, including
729N/A# without limitation the rights to use, copy, modify, merge, publish,
729N/A# distribute, and/or sell copies of the Software, and to permit persons
729N/A# to whom the Software is furnished to do so, provided that the above
729N/A# copyright notice(s) and this permission notice appear in all copies of
729N/A# the Software and that both the above copyright notice(s) and this
729N/A# permission notice appear in supporting documentation.
729N/A#
729N/A# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
729N/A# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
729N/A# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
729N/A# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
729N/A# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
729N/A# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
729N/A# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
729N/A# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
729N/A# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
729N/A#
729N/A# Except as contained in this notice, the name of a copyright holder
729N/A# shall not be used in advertising or otherwise to promote the sale, use
729N/A# or other dealings in this Software without prior written authorization
729N/A# of the copyright holder.
729N/A#
729N/A# ident "@(#)fsadmin 1.3 09/06/18 SMI"
729N/A#
729N/A# fsadmin - script to enable/disable X font server
729N/A
729N/APATH=/usr/bin:/usr/sbin
729N/AUSAGE='usage: fsadmin [-e | -d | -usage]'
729N/AFMRI='svc:/application/x11/xfs:default'
729N/A
729N/Aif (( $# == 0 )) ; then
729N/A # No arguments - report current status
729N/A /usr/bin/svcs $FMRI
729N/Aelse
729N/A case "$1" in
729N/A '-e'|'-d')
729N/A /usr/sbin/inetadm $1 $FMRI
729N/A ;;
729N/A *)
729N/A print "$USAGE"
729N/A ;;
729N/A esac
729N/Afi
729N/A
729N/Aexit 0