#!/sbin/sh
################################
# Product: eGurkha
# Fileset: bin
# postinstall
# @ (#) $Revision: 2.5 $
################################
#
# (c) Copyright eG Innovations
#
###################

PATH=$SW_PATH:/sbin:/usr/bin:/usr/ccs/sbin
export PATH

# is it already there?

if grep -q /opt/egurkha/bin /etc/PATH
then exit
fi

echo "Adding /opt/egurkha/bin to the /etc/PATH file"
mv /etc/PATH /etc/PATH.old

awk '{print $1 ":/opt/egurkha/bin" }' < /etc/PATH.old >/etc/PATH

if [ -f /etc/PATH ]
then rm -f /etc/PATH.old
fi
