:
#
# version 3.0 Sep 25 11:21:02 PDT 1998

umask 022
# This tool suite was written by and is copyrighted by Brad Powell, Matt 
# Archibald, and Dan Farmer 1992, 1993, 1994, 1995, 1996, 1997, 1998 with input 
# from Casper Dik, and Alec Muffett.
#
# The copyright holder disclaims all responsibility or liability with
# respect to its usage or its effect upon hardware or computer
# systems, and maintains copyright as set out in the "LICENSE"
# document which accompanies distribution.

#
#  Every titan script should be run by root and have one of four
# types of arguments:
#
#   [Ii](ntro)
#       This prints out the intro section
#
#   [Vv](erify)
#	This verifies/checks that things are ok or not.
#
#   [Ff](ix)
#	This actually fixes any problems found.
#   [Cc]onfig-file
#   this allows you to build a config file with modules to run
#
TITANHOME=`pwd`
PATH=/usr/ucb:/bin:/usr/bin:/sbin:$TITANHOME:$TITANHOME/lib

program_name=$1
argument=$2

#
#  Is run by root?
#
if test `is_root` != 0 ; then
	echo >&2 "       $program_name: Error!  Must be run as root."
	exit 2
	fi

# Arg check
case $argument in
	-[Ii]*)
		action=-i
		;;
	-[Ff]*)
		action=-f
		;;
	-[Vv]*)
		action=-v
		;;
	-[Cc]*)
                action=-c
                ;;

	*)
		echo >&2 "       Usage: $program_name ($argument) -[Cc]configfile filename -[Ii]ntroduction,-[Vv]erify,-[Ff]ix}"
		exit 3;;
		esac

echo $action
exit 0
