mirror of
https://github.com/koush/scrypted.git
synced 2026-09-17 09:10:38 +01:00
docker: dynamically find amdgpu deb package name (#1666)
This commit is contained in:
@@ -23,7 +23,13 @@ fi
|
||||
|
||||
# https://amdgpu-install.readthedocs.io/en/latest/install-prereq.html#installing-the-installer-package
|
||||
|
||||
FILENAME="amdgpu-install_6.3.60300-1_all.deb"
|
||||
FILENAME=$(curl -s -L https://repo.radeon.com/amdgpu-install/latest/ubuntu/$distro/ | grep -o 'amdgpu-install_[^ ]*' | cut -d'"' -f1)
|
||||
if [ -z "$FILENAME" ]
|
||||
then
|
||||
echo "AMD graphics package can not be installed. Could not find the package name."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
set -e
|
||||
mkdir -p /tmp/amd
|
||||
cd /tmp/amd
|
||||
|
||||
Reference in New Issue
Block a user