mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-03 22:47:14 +08:00
trial for catalyst warning, chd catalyst-legacy correction
This commit is contained in:
parent
e19f1f6225
commit
e165b24c2d
@ -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(){
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user