#!/bin/sh # V="Installer Driver ATI Desktop" VERSION="$V Ubuntu 10.04 Lucid Lynx ke atas" BY="Andrian Dion P. " SITE="http://andrewdion.staff.ugm.ac.id" LICENSE="(C) 2010 GPL v2" APT_INSTALL="apt-get install -y" APT_REMOVE="apt-get -y remove --purge" GET="/usr/bin/wget -t inf -P" PKG_PATH="http://repo.ugm.ac.id/ekstra/driver/video/linux/ATI/Desktop/" ATI_FILE="ati-driver-installer-11-9-x86.x86_64.run" # Make sure only root can run our script if [[ $EUID -ne 0 ]]; then sudo bash $0 exit 1 fi clear echo "$VERSION" echo "$BY" echo "$SITE" echo "$LICENSE" echo "" echo "Starting..." echo "$DATE" > /tmp/install-driver-ATI.log sleep 1 $GET /tmp/ $PKG_PATH/$ATI_FILE echo "###installing ATI Driver###" $APT_INSTALL dkms $APT_INSTALL fakeroot $APT_INSTALL build-essential $APT_INSTALL libqtgui4 $APT_INSTALL libelfg0 sleep 1 cd /tmp/ bash $ATI_FILE --buildpkg Ubuntu/lucid sleep 1 dpkg -i *.deb sleep 2 aticonfig --initial -f sleep 1 read -p "Anda mau melakukan reboot, Enter [Y]es or [N]o: " RESPONSE if [ "$RESPONSE" = Y ] ; then echo "Your answered yes!" sleep 1 reboot exit 0 elif [ "$RESPONSE" = N ] ; then exit 0 else echo "You did not make a valid selection!" exit 0 fi