#!/bin/sh

	mkdir /touchscreen
	cp ./LinearAp.tar.gz /touchscreen/
	cp ./SetupAp.tar.gz /touch/
	cp ./xfhiddrv_drv.tar.gz /touchscreen/
       cp /etc/X11/xorg.conf /etc/X11/xorg-hid.bck
	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 /touchscreen/
	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/
       cd /touchscreen
       gzip -d SetupAp.tar.gz
	tar xvf SetupAp.tar
	gzip -d xfhiddrv_drv.tar.gz
	tar xvf xfhiddrv_drv.tar
	cp ./xfhiddrv_drv.so /usr/lib/xorg/modules/input/
	gzip -d LinearAp.tar.gz
	tar xvf LinearAp.tar
	cp ./LinearAp /usr/local/bin/
	./chgui
	cp ./simpleui.rc /opt/xandros/share/AsusLauncher/
	rm *
	cd ..
	rmdir touchscreen


