sunhat/scripts/rebuild_nvidia_kmod.sh
2024-06-09 05:05:28 -05:00

5 lines
200 B
Bash

cp $(which akmods) /tmp/akmods
sed -i 's/dnf -y install/dnf -y reinstall/' /tmp/akmods
perl -i -pe 'if (/check_kmod_up2date\(\)/) { $_ .= <>; s/\{\n/{ return 1\n/ }' /tmp/akmods
sudo bash /tmp/akmods