#!/bin/sh
echo "-----------------------------------"
echo "Intel 845G VGA Driver installation."
if [ ! -f /usr/X11R6/lib/modules/drivers/i810_drv.o ];then
echo "Runtime error ...setup abort!!!"
echo "-----------------------------------"
exit
fi
mv /usr/X11R6/lib/modules/drivers/i810_drv.o /usr/X11R6/lib/modules/drivers/i810_ORG_DRIVER > /dev/null
cp ./i810 /usr/X11R6/lib/modules/drivers/i810_drv.o > /dev/null
chmod 755 /usr/X11R6/lib/modules/drivers/i810_drv.o > /dev/null
chown root:root /usr/X11R6/lib/modules/drivers/i810_drv.o > /dev/null
echo "Installation successful."
echo "-----------------------------------"
