From e165b24c2d68958aac87a4e3d9e5673ca49d554c Mon Sep 17 00:00:00 2001 From: abveritas Date: Tue, 10 Jul 2012 04:10:25 +0000 Subject: [PATCH] trial for catalyst warning, chd catalyst-legacy correction --- catalyst-utils/catalyst-utils.install | 12 ++++++++++++ .../opt/chakra/hooks/hwdetect_7_graphics | 1 + 2 files changed, 13 insertions(+) diff --git a/catalyst-utils/catalyst-utils.install b/catalyst-utils/catalyst-utils.install index e385ba173..3c1f7e7be 100644 --- a/catalyst-utils/catalyst-utils.install +++ b/catalyst-utils/catalyst-utils.install @@ -32,6 +32,18 @@ check_libdri_so(){ post_install(){ check_libdri_so whisperer + + CARD_ATI=$(lspci -n | sed -n "s/.* 0300: 1002:\(....\).*/\1/p") + if [ "$CARD_ATI" != "" ] + then + [ $(grep -i "$CARD_ATI" hw_ati_legacy_hwdb) ] + then + echo "WARNING WARNING WARNING WARNING" + echo "ATI LEGACY hardware detected" + echo "This driver is not compatible, install catalyst-legacy before rebooting." + echo "sudo pacman -S catalyst-legacy" + echo "WARNING WARNING WARNING WARNING" + fi } post_upgrade(){ diff --git a/chakra-hardware-detection/opt/chakra/hooks/hwdetect_7_graphics b/chakra-hardware-detection/opt/chakra/hooks/hwdetect_7_graphics index 1341f7b46..833ae27d7 100755 --- a/chakra-hardware-detection/opt/chakra/hooks/hwdetect_7_graphics +++ b/chakra-hardware-detection/opt/chakra/hooks/hwdetect_7_graphics @@ -142,6 +142,7 @@ hwdetect_graphics() pacman -Rdd --noconfirm xf86-video-ati &>/dev/null pacman -Rdd --noconfirm xf86-video-radeonhd &>/dev/null pacman -Udf --noconfirm ${HW_DRIVER_PATH}/catalyst-legacy* &>/dev/null + pacman -Udf --noconfirm ${HW_DRIVER_PATH}/catalyst-legacy-utils* &>/dev/null # add a status file in /tmp touch /tmp/catalyst-legacy