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

source /ciena/scripts/path_manipulation.sh

# 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_prepend /usr/sbin
    path_prepend /sbin
fi

path_append /tmp/bin
path_append /mnt/apps/bin
path_append /ciena/bin
path_append /ciena/scripts

ulimit -c unlimited

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

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

# End of profile
