sunhat/scripts/rebuild_nvidia_kmod.sh

5 lines
200 B
Bash
Raw Normal View History

2024-06-09 04:16:43 -05:00
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