# /etc/profile: system-wide .profile file for the Bourne shells
#
#

set_path_before()
{
        [ -d $1 ] && PATH="$1:$PATH"
}
                
PATH="/usr/bin:/usr/sbin:/bin:/sbin"
set_path_before /usr/local/sbin
set_path_before /usr/local/bin
                        
LD_LIBRARY_PATH="/usr/qt/lib:/usr/local/lib:/usr/lib"
                                
export PATH
export LD_LIBRARY_PATH
                                        
export QT_ROOT=/usr/qt
export QT_QPA_PLATFORM_PLUGIN_PATH=$QT_ROOT/plugins
export QT_QPA_PLATFORM=linuxfb:fb=/dev/fb0:tty=/dev/ttyAMA0:nographicsmodeswitch
#export QT_QPA_PLATFORM="linuxFB:/dev/fb0"
export LD_PRELOAD=/usr/lib/preloadable_libiconv.so
export QT_QPA_FONTDIR=/link/res
export QT_QWS_DISPLAY="linuxFB:/dev/fb0"
export QT_QPA_EGLFS_FB="/dev/fb0"
export QT_QPA_EGLFS_WIDTH=720
export QT_QPA_EGLFS_HEIGHT=576
export QT_QPA_EGLFS_DEPTH=32
export QT_QPA_EGLFS_PHYSICAL_WIDTH=720
export QT_QPA_EGLFS_PHYSICAL_HEIGHT=576

#export DFBARGS=module-dir=/usr/lib/directfb-1.4-0
#export QT_DIRECTFB_WARN_ON_RASTERFALLBACKS="FILL_RECT|DRAW_PIXMAP"
#export QT_DIRECTFB_DISABLE_RASTERFALLBACKS="FILL_RECT|DRAW_PIXMAP"
export TSLIB_ROOT=/usr/lib
export TSLIB_TSDEVICE=/dev/input/event0
export TSLIB_CALIBFILE=/etc/pointercal
export TSLIB_CONFFILE=/etc/ts.conf
export TSLIB_PLUGINDIR=/usr/lib/ts
export TSLIB_FBDEVICE=/dev/fb0
export TSLIB_CONSOLEDEVICE=none
export QWS_SIZE=1920x1080
#export QWS_MOUSE_PROTO="tslib:/dev/input/event0 mouseman:/dev/input/mice"
export QWS_MOUSE_PROTO="tslib:/dev/input/event0"
#export QWS_MOUSE_PROTO="mouseman:/dev/input/mice"
# ANSI COLORS
CRE="
[K"
NORMAL="[0;39m"
RED="[1;31m"
GREEN="[1;32m"
YELLOW="[1;33m"
BLUE="[1;34m"
MAGENTA="[1;35m"
CYAN="[1;36m"
WHITE="[1;37m"

umask 022

echo "${GREEN}Welcome to HiLinux.${NORMAL}"

