updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / catalyst-utils / catalyst-utils.install
blob4172b2ec7f128971e1bab8b952aaca1163c2660a
2 whisperer(){
3     echo "----------------------------------------------------------------"
4     echo "PLEASE NOTE:"
5     echo "For these drivers to work, you must install kernel modules."
6     echo "Depending on your kernel, these module packages are named"
7     echo "catalyst-\$kernel and stock kernel module is catalyst"
8     echo ""
9     echo "OR simply use packages that provides auto re-compilation:"
10     echo "catalyst-hook or catalyst-daemon"
11     echo ""
12     echo "OR use catalyst-generator package to generate catalyst-{kernver}"
13     echo "packages"
14     echo "----------------------------------------------------------------"
15     echo "You can use the tool 'aticonfig' to generate an xorg.conf file."
16     echo "--------------------- ^^^^^^^^^ --------------------------------"
17     echo "Add nomodeset to your kernel line in /boot/grub/menu.lst , ie.:"
18     echo "kernel /boot/vmlinuz-linux root=/dev/sda1 ro nomodeset"
19     echo "----------------------------------------------------------------"
20     echo "For more info and troubleshooting visit:"
21     echo "http://wiki.archlinux.org/index.php/ATI_Catalyst"
22     echo "----------------------------------------------------------------"
25 check_libdri_so(){
26     if [ ! -e usr/lib/xorg/modules/extensions/libdri.so ]; then
27         ln -sf usr/lib/xorg/modules/extensions/libdri.xorg usr/lib/xorg/modules/extensions/libdri.so
28     fi
32 post_install(){
33     check_libdri_so
34     whisperer
37 post_upgrade(){
38     check_libdri_so
39     whisperer
42 post_remove(){
43     # If the symlink is dead, remove it
44      check_libdri_so
45      echo "NOTE: Don't forget to recover your original xorg.conf file."