updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / catalyst-generator / catalyst-generator.install
bloba91165bd5146a42f54efc0529ed8145f504a0f03
2 whisperer(){
3     echo "----------------------------------------------------------------"
4     echo "Add nomodeset to your kernel line in /boot/grub/menu.lst , ie.:"
5     echo "kernel /boot/vmlinuz-linux root=/dev/sda1 ro nomodeset"
6     echo "-------------------------------------------- ^^^^^^^^^ ---------"
7     echo "If experiencing problems with building module or using more than"
8     echo "one kernel use catalyst_build_module command as root, more info:"
9     echo "# catalyst_build_module help"
10     echo "- ^^^^^^^^^^^^^^^^^^^^^ ----------------------------------------"
11     echo "For more info and more troubleshooting visit:"
12     echo "http://wiki.archlinux.org/index.php/ATI_Catalyst"
13     echo "----------------------------------------------------------------"
14     echo ""
15     echo "Now you MUST to run:"
16     echo "catalyst_build_module"
17     echo "Running this command as non-root is a better way"
21 post_install(){
22     whisperer
25 post_upgrade(){
26     whisperer
30 post_remove(){
31     # remove log
32      rm -f var/log/catalyst-install.log
34     echo "----------------------------------------------------------------"
35     echo "Don't forget to remove fglrx from MODULES array of /etc/rc.conf"
36     echo "----------------------------------------------------------------"
37     echo ""
38     echo "Manually remove (with pacman -R) those packages:"
39     for p in /lib/modules/*; do
40       if [[ ${p:13:3} != "ext" ]]; then
41         if [[ -e $p/video/fglrx.ko.gz ]]; then
42               echo "catalyst-${p##*lib/modules/}"
43         fi
44       elif [[ ${p:13:3} = "ext" ]]; then
45         if [[ -e $p/fglrx.ko.gz ]]; then
46               echo "catalyst-${p##*/lib/modules/extramodules-}"
47         fi
48       fi
49     done