alias ls="ls --color=auto"

export PATH=/usr/alsa/bin:$PATH
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/QT4.8.2/lib:/usr/alsa/lib/
export TSLIB_TSDEVICE=/dev/input/event0
export TSLIB_CONFFILE=/etc/ts.conf
export TSLIB_PLUGINDIR=/QT4.8.2/lib/ts
export TSLIB_CALIBFILE=/etc/pointercal

#export QWS_MOUSE_PROTO="tslib:/dev/input/event0"
if [ -f "/root/boot_loadingbar.sh" ]; then
        rm -f /tmp/progress_prev_px
        chmod 755 /root/boot_loadingbar.sh
        /root/boot_loadingbar.sh 25
fi

/etc/update.sh

if [ -f "/root/usemouse" ]; then
export QWS_MOUSE_PROTO="tslib:/dev/input/event0 Auto"
echo mouse
else
export QWS_MOUSE_PROTO="tslib:/dev/input/event0"
echo touch
fi

if [ -f /etc/modules/wlan_8188.ko ]; then
        insmod /etc/modules/wlan_8188.ko
fi
if [ -f /etc/modules/wlan_8192eu.ko ]; then
        insmod /etc/modules/wlan_8192eu.ko
fi

if [ ! -s /dev/gpio_i2c0 ]; then
        mknod /dev/gpio_i2c0 c 176 0
fi
if [ ! -s /dev/gpio_i2c1 ]; then
        mknod /dev/gpio_i2c1 c 177 0
fi

if [ ! -s /dev/sda ]; then
        mknod /dev/sda b 8 0
fi

if [ ! -s /dev/sda1 ]; then
        mknod /dev/sda1 b 8 0
fi

if [ -f "/root/boot_loadingbar.sh" ]; then
        /root/boot_loadingbar.sh 50
fi

if [ -e /etc/TestPass ]; then
        chmod 755 /root/FStart
	/root/FStart
else
	sleep 3
	/usr/test_app/dev_test &
fi

