#!/bin/sh

# Decompress tar
tar xzvf fedora-13-0.2.tgz
cd fedora-13-0.2

# Backup xorg.conf
cp /etc/X11/xorg.conf /etc/X11/xorg.conf.old
cp /usr/share/X11/xorg.conf.d/10-evdev.conf /usr/share/X11/xorg.conf.d/10-evdev.conf.old

# Modify xorg.conf
Xorg -configure :1
cp ~/xorg.conf.new ./xorg.conf
./chgxorg
cp -f ./xorg.conf /etc/X11/xorg.conf
cp -f ./10-evdev.conf /usr/share/X11/xorg.conf.d/

# Copy binaries 
cp -f ./LinearAp /usr/local/bin/
cp -f ./xfhiddrv_drv.so /usr/lib/xorg/modules/input/


echo "Setup completed, please restart system to enable touch panel."

