#!/bin/sh
# rds 22 November 2006

if test ! -w /etc/passwd
then
	echo "You must be running as root to execute eslm" 1>&2
	exit 1
fi

set +u

unset COBPATH
unset COBDATA

COBSW=""
export COBSW


if [ -z "$COBDIR" ]
   then
   echo "COBDIR is not set - exiting" 1>&2
   exit 1
fi

LIBPATH=$COBDIR/lib:$LIBPATH
SHLIB_PATH=$COBDIR/lib:$SHLIB_PATH
LD_LIBRARY_PATH=$COBDIR/lib:$LD_LIBRARY_PATH
export LIBPATH
export SHLIB_PATH
export LD_LIBRARY_PATH

exec $COBDIR/bin/eslm32 $*
