/etc/profile
System wide environment and startup programs, for login setup
Functions and aliases go in /etc/bashrc
trap 1 2 3
pathmunge () {
if ! echo $PATH | /bin/egrep -q “(^|:)$1($|:)” ; then
if [ “$2” = “after” ] ; then
PATH=$PATH:$1
else
PATH=$1:$PATH
fi
fi
}
ANT_HOME=/usr/local/ant
JAVA_HOME=/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0
export PATH=${PATH}:${ANT_HOME}/bin
ksh workaround
if [ -z “$EUID” -a -x /usr/bin/id ]; then
EUID=id -u
UID=id -ru
fi
Path manipulation
if [ “$EUID” = “0” ]; then
pathmunge /sbin
pathmunge /usr/sbin
pathmunge /usr/local/sbin
fi
No core files by default
ulimit -S -c 0 > /dev/null 2>&1
if [ -x /usr/bin/id ]; then
USER=”id -un
“
LOGNAME=$USER
MAIL=”/var/spool/mail/$USER”
fi
HOSTNAME=/bin/hostname
HISTSIZE=1000
if [ -z “$INPUTRC” -a ! -f “$HOME/.inputrc” ]; then
INPUTRC=/etc/inputrc
fi
export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC
for i in /etc/profile.d/*.sh ; do
if [ -r “$i” ]; then
if [ “$PS1” ]; then
. $i
else
. $i >/dev/null 2>&1
fi
fi
done
unset i
unset pathmunge
export TMOUT=300
export CENTRALHOST=127.0.0.1:1381
umask 027
if [ $USER != root -a $USER != “sradmin” ]; then
#/usr/local/bin/srssh
/usr/local/bin/hostmenu
exit
fi