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

PATH="/usr/local/bin:/usr/bin:/bin"
EDITOR="vi"                     # needed for packages like cron, git-commit
test -z "$TERM" && TERM="vt100" # Basic terminal capab. For screen etc.

#Default display to use
DISPLAY=":0.0"
if [ ! -e /etc/localtime -a ! -e /etc/TZ ]; then
        TZ="UTC"                # Time Zone. Look at http://theory.uwinnipeg.ca/gnu/glibc/libc_303.html
                                # for an explanation of how to set this to your local timezone.
        export TZ
fi

if [ "$HOME" = "/home/root" ]; then
   PATH=$PATH:/usr/local/sbin:/usr/sbin:/sbin
fi
if [ "$PS1" ]; then
# works for bash and ash (no other shells known to be in use here)
   PS1='\u@\h:\w\$ '
fi

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

if [ -x /usr/bin/resize ];then
  /usr/bin/resize >/dev/null
fi

export PATH PS1 OPIEDIR QPEDIR QTDIR DISPLAY EDITOR TERM

umask 022

export TSLIB_TSEVENTTYPE=INPUT
export TSLIB_CONSOLEDEVICE=none
export TSLIB_FBDEVICE=/dev/fb0
export TSLIB_TSDEVICE=/dev/input/event0
export TSLIB_CALIBFILE=/opt/pointercal
export TSLIB_CONFFILE=/etc/ts.conf
export TSLIB_PLUGINDIR=/usr/lib/ts

export QT_QPA_EGLFS_DISABLE_INPUT=1
export QT_QPA_EGLFS_TSLIB=1
export QT_QPA_GENERIC_PLUGINS=tslib

# for LS-R901
export QT_QPA_PLATFORM=eglfs

export LD_LIBRARY_PATH=\
/opt/CSMRoot/Storage\ Card/LSR902/Prg

echo -e '\033[9;0]' > /dev/tty1
