#!/bin/sh

	gzip -d chgxorg.tar.gz
	tar -xvf chgxorg.tar
	gzip -d LinearAp.tar.gz
	tar -xvf LinearAp.tar
	gzip -d xfhiddrv_drv.tar.gz
	tar -xvf xfhiddrv_drv.tar
	cp ./xfhiddrv_drv.so /usr/lib/xorg/modules/input/
	cp ./LinearAp /usr/local/bin/
	Xorg -configure :1
	cp ~/xorg.conf.new ./xorg.conf
        ./chgxorg
	cp ./xorg.conf /etc/X11/
	rm LinearAp
	rm chgxorg
        rm xfhiddrv_drv.so
	rm xorg.conf
	gzip chgxorg.tar
	gzip LinearAp.tar
	gzip xfhiddrv_drv.tar
	echo "Finished to setup, please reboot your computer."

