Initial add of defaria.com
[clearscm.git] / defaria.com / Computers / code / adm / bin / veritas
1 #!/bin/bash
2 ###############################################################################
3 #
4 # File:         veritos
5 # Description:  Run the veritos GUI
6 # Author:       Andrew DeFaria <Andrew@DeFaria.com>
7 # Created:      Thu Jun  6 08:31:57 PDT 1996
8 # Modified:     
9 # Language:     Korn Shell
10 #
11 # (c) Copyright 2001, Andrew@DeFaria.com, all rights reserved
12 #
13 ###############################################################################
14 me=$(basename $0)
15 VRTS_veritos=/opt/VRTSvxva/bin/vxva
16 SUNW_veritos=/opt/SUNWvxva/bin/vxva
17
18 if [ $(/usr/xpg4/bin/id -u) -ne 0 ]; then
19   print -u2 "$me: Error: Must be root to run this command"
20   exit 1
21 fi
22
23 if [ -x $VRTS_veritos ]; then
24   veritos=$VRTS_veritos
25 elif [ -x $SUNW_veritos ]; then
26   veritos=$SUNW_veritos
27 else
28   print "$me: Error: Unable to find veritos"
29   exit 1
30 fi
31
32 $veritos "$@"