# /etc/profile

# System wide environment and startup programs
# Functions and aliases go in /etc/bashrc

PATH="$PATH:/usr/X11R6/bin:/IBM/bin:/opt/IBMJava2-13/jre/bin"

PS1="[\u@\h \W]\\$ "

ulimit -c 1000000
if [ `id -gn` = `id -un` -a `id -u` -gt 14 ]; then
	umask 002
else
	umask 022
fi

USER=`id -un`
LOGNAME=$USER
MAIL="/var/spool/mail/$USER"

# Export MIBS=ALL for the snmpd
MIBS=ALL

HOSTNAME=`/bin/hostname`
HISTSIZE=1000
HISTFILESIZE=1000
LESSOPEN="|/usr/bin/lesspipe.sh %s"

# SMBSERVER - IBM NetVista Linux Thin Client Change - Uncomment for SMB
#	user home directories.
#SMBSERVER=SERVER_NAME

export PATH PS1 HOSTNAME HISTSIZE HISTFILESIZE USER LOGNAME MAIL LESSOPEN SMBSERVER MIBS
export LESS=-X
export HISTCONTROL=ignoredups

for i in /etc/profile.d/*.sh ; do
	if [ -x $i ]; then
		. $i
	fi
done
unset i
