From 8102d9b475c1c6d0635ff2f8da61312776683a58 Mon Sep 17 00:00:00 2001 From: khvalera Date: Fri, 26 Oct 2018 12:03:17 +0300 Subject: [PATCH] fix amdgpu --- ARCH/PKGBUILD | 2 +- install-video.func | 10 ++++------ 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/ARCH/PKGBUILD b/ARCH/PKGBUILD index 1b67284..a931b72 100644 --- a/ARCH/PKGBUILD +++ b/ARCH/PKGBUILD @@ -1,5 +1,5 @@ pkgname=install-snuglinux -pkgver=0.0.7 +pkgver=0.0.11 pkgrel=1 pkgdesc="Console script to install and configure distribution snuglinux" arch=('any') diff --git a/install-video.func b/install-video.func index 01568f5..ea73943 100644 --- a/install-video.func +++ b/install-video.func @@ -40,9 +40,10 @@ install_video_ati(){ check_amdgpu if [ "$?" = 1 ]; then - ARRAY="012" + ARRAY = "012" + CHECK_AMDGPU = "yes" else - ARRAY="01" + ARRAY = "01" fi show_message SPECIFY_VIDEO_DRIVER show_message 0_DO_NOT_INSTALL @@ -75,10 +76,7 @@ install_video_ati(){ if ! [ -d /mnt/etc/X11/xorg.conf.d ]; then mkdir /mnt/etc/X11/xorg.conf.d fi - echo 'Section "Device" - Identifier "AMD" - Driver "amdgpu" -EndSection' >> /mnt/etc/X11/xorg.conf.d/20-amdgpu.conf + cp /mnt/usr/share/X11/xorg.conf.d/10-amdgpu.conf /mnt/etc/X11/xorg.conf.d/10-amdgpu.conf return 1 # yes fi