#!/bin/sh

	gzip -d eMTouchKit.tar.gz
	tar xvf eMTouchKit.tar
	cp ./main.bmp /usr/share/images/
	cp ./add.bmp /usr/share/images/
	cp ./minus.bmp /usr/share/images/
	cp ./eMTouchKit /usr/local/bin/
	gzip -d LinearAp.tar.gz
	tar xvf LinearAp.tar
	cp ./LinearAp /usr/local/bin/
	gzip -d SetupAp.tar.gz
	tar xvf SetupAp.tar
	cp /etc/X11/xorg.conf /etc/X11/xorg-hid.bck
	cp /etc/X11/xorg.conf ./xorg.conf
	./chgxorg
	cp ./xorg.conf /etc/X11/
	cp /opt/xandros/share/AsusLauncher/simpleui.rc /opt/xandros/share/AsusLauncher/simpleui.bck
	cp /opt/xandros/share/AsusLauncher/simpleui.rc ./simpleui.rc
	cp ./touch_hi.png /opt/xandros/share/AsusLauncher/
	cp ./touch_norm.png /opt/xandros/share/AsusLauncher/
	cp ./accessibility_touch_hi.png /opt/xandros/share/AsusLauncher/
	cp ./business_touch_hi.png /opt/xandros/share/AsusLauncher/
	cp ./home_touch_hi.png /opt/xandros/share/AsusLauncher/
	cp ./student_touch_hi.png /opt/xandros/share/AsusLauncher/
	gzip -d xfhiddrv_drv.tar.gz
	tar xvf xfhiddrv_drv.tar
	cp ./xfhiddrv_drv.so /usr/lib/xorg/modules/input/
	./chgui
	cp ./simpleui.rc /opt/xandros/share/AsusLauncher/
	rm *
	cd ..
	echo "Finish to setup, please restart the computer."



