# /etc/profile: system-wide .profile file for the Bourne shell (sh(1))
# and Bourne compatible shells (bash(1), ksh(1), ash(1), ...).

if [ "`id -u`" -eq 0 ]; then
  PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
else
  PATH="/usr/local/bin:/usr/bin:/bin:/usr/games"
fi

if [ "$PS1" ]; then
  if [ "$BASH" ]; then
    PS1='\u@\h:\w\$ '
  else
    if [ "`id -u`" -eq 0 ]; then
      PS1='# '
    else
      PS1='$ '
    fi
  fi
fi

export PATH

umask 022

###############
### For the SLP

PATH="$PATH:/usr/X11R6/bin:/sbin:/usr/local/bin"
HOSTNAME=`/bin/hostname`
# for touchscreen calibration application...kdsoo
TSLIB_TSDEVICE='/dev/event1'
LD_LIBRARY_PATH='/usr/lib:./lib'
export PATH LOGNAME HOSTNAME INPUTRC TSLIB_TSDEVICE LD_LIBRARY_PATH

# For x environment
export LANG=en_US.UTF-8
#export LANG=ko_KR.UTF-8
export XMODIFIERS="@im=Ami"
export DISPLAY=":0"
export TERM=xterm
export KDB_DIR=/opt/var/kdb
