#########################################################################
#                                                                       #
# 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'

#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:/mnt/apps/usr/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

if [ -n "$GRSEC" ]; then
   /sbin/gradm -n $GRSEC
fi

# End of profile
