my-ostree-OS/install-nvidia.sh

11 lines
313 B
Bash
Raw Normal View History

2023-09-16 11:03:01 +02:00
#!/bin/sh
KERNEL_VERSION="$(rpm -q $1 --queryformat '%{VERSION}-%{RELEASE}.%{ARCH}')"
2023-09-16 11:03:01 +02:00
if ls /tmp/nvidia/*.failed.log >/dev/null 2>&1; then
cat /tmp/nvidia/*.failed.log
else
echo "No error files present. Akmods modules were built successfully."
fi
2023-09-16 11:03:01 +02:00
rpm-ostree install /tmp/nvidia/*${KERNEL_VERSION}*.rpm