#########################################################################
#                                                                       #
# Name          : profile                                               #
# Purpose       : Set ASH environment variables here                    #
#                                                                       #
#########################################################################

# Aliases

alias ll='ls -l'
alias lsf='ls -CF'
alias lps2='for p in $(pgrep leos) ; do ps -L -o pid,lwp,rtprio,class,wchan:20,ucmd -p $p ; echo ; done'

# Environment variables

. /ciena/scripts/le0 getenv
. /ciena/scripts/krn getenv

if [ -n "$LE0_TFTP" ]; then
	TFTP_SERVER=$LE0_TFTP
fi

if [ -z "$TFTP_SERVER" ]; then
	TFTP_SERVER=192.168.2.2
fi

export TFTP_SERVER
export EXTMGR_QID='Z'
#If we're in loco rootis, fix our path.
TGID=`fgrep leosdiag /etc/group|awk -F: '{print $3}'`
if [ `id -g` = ${TGID:-0} ]; then
    PATH=/sbin:/usr/sbin:$PATH
fi

PATH=$PATH:/tmp/bin:/mnt/apps/bin:/ciena/bin:/ciena/scripts

ulimit -c unlimited

if [ "$PS1" ]; then
  if [ "$BASH" ]; then
    PS1='\u@\h:\w\$ '
    if [ -f /etc/bash.bashrc ]; then
	. /etc/bash.bashrc
    fi
  fi
fi

# End of profile
