
#******************************************************************************
#
#	Copyright (C) 1994-1995 The Santa Cruz Operation, Inc.
#		All Rights Reserved.
#
#	The information in this file is provided for the exclusive use of
#	the licensees of The Santa Cruz Operation, Inc.  Such users have the
#	right to use, modify, and incorporate this code into other products
#	for purposes authorized by the license agreement provided they include
#	this notice and the associated copyright notice with any such product.
#	The information in this file is provided "AS IS" without warranty.
#
#===============================================================================
begin
title='Video Configuration Manager'
app='/usr/X11R6/bin/xorgcfg'
appa='/usr/X11R6/bin/xorgcfg -textmode -config /etc/xorg.conf'
uid=`{id -u}
if ! match $uid 0
then
	fyi -t $title You must be root to run $title
	finish
	exit 0
fi
if ! match `(fileclass $app) *X*
then
	fyi -t $title Unable to execute $appa
	finish
	exit 1
fi
/usr/X11R6/bin/xterm -title $title -e $appa
finish
