„amd-vendor-reset.plg“ ändern

This commit is contained in:
ich777 2022-03-21 09:08:46 +01:00
parent fa4a632f46
commit 7ce92b4161
No known key found for this signature in database
GPG Key ID: 83E924193EC9815E

View File

@ -2,7 +2,7 @@
<!DOCTYPE PLUGIN [ <!DOCTYPE PLUGIN [
<!ENTITY name "AMD-Vendor-Reset"> <!ENTITY name "AMD-Vendor-Reset">
<!ENTITY author "ich777"> <!ENTITY author "ich777">
<!ENTITY version "2021.06.23"> <!ENTITY version "2022.03.21">
<!ENTITY gitURL "https://raw.githubusercontent.com/&author;/unraid-amd-vendor-reset/master"> <!ENTITY gitURL "https://raw.githubusercontent.com/&author;/unraid-amd-vendor-reset/master">
<!ENTITY pluginURL "&gitURL;/amd-vendor-reset.plg"> <!ENTITY pluginURL "&gitURL;/amd-vendor-reset.plg">
<!ENTITY plugin "/boot/config/plugins/amd-vendor-reset"> <!ENTITY plugin "/boot/config/plugins/amd-vendor-reset">
@ -13,6 +13,9 @@
<CHANGES> <CHANGES>
###2022.03.21
- Added change for reset_method for Kernel 5.15+
###2021.06.23 ###2021.06.23
- Changed package download repo - Changed package download repo
@ -108,6 +111,18 @@ else
echo echo
fi fi
#Change reset_method for installed AMD VGA adapters for Kernel 5.15+
#https://github.com/gnif/vendor-reset/issues/46#issuecomment-992282166
TARGET_V="5.14.99"
COMPARE="$(uname -r | cut -d '-' -f1)
$TARGET_V"
if [ "$TARGET_V" != "$(echo "$COMPARE" | sort -V | tail -1)" ]; then
while read -r line
do
echo 'device_specific' &gt; $(find /sys/bus/pci/devices/* -name "*$line")/reset_method
done &lt;&lt;&lt; "$(lspci -nn | grep -E "VGA compatible controller|Display controller" | grep -E "AMD|ATI|Advanced Micro Devices" | awk '{print $1}')"
fi
#Install icon #Install icon
if [ ! -f "&emhttp;/images/&name;.png" ]; then if [ ! -f "&emhttp;/images/&name;.png" ]; then
if [ ! -d "&emhttp;/images" ]; then if [ ! -d "&emhttp;/images" ]; then