: # # version 4.0 June 16 11:21:02 PDT 2002 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, 2002 # # 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=/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 -[Bb]*) action=-b ;; -[Uu]*) action=-u ;; -[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, -[Bb]ackup, -[Uu]ndo" exit 3;; esac echo $action exit 0