#! /bin/bash

date=`date +%d%m%Y`
dr_path=/usr/X11R6/lib/modules/drivers

if [ -e $dr_path/mtx_drv.o ]; then
	mkdir /usr/share/matrox/$date
	cp $dr_path/mtx_drv.o /usr/share/matrox/$date
	echo "	Your current driver will be backed up in /usr/share/matrox"$date
fi

cp -f $dr_path/mtx_drv_144 $dr_path/mtx_drv.o

echo "	**************************************************"
echo "	*  Your driver file is now installed. Please     *"
echo "	*  don't forget to make necessary changes to     *"
echo "	*  your X config file (i.e. /etc/X11/XF86Config) *"
echo "	*  Please consult /usr/share/matrox/README file  *" 
echo "	*  for details					 *"
echo "	**************************************************"

exit

