sunhat/scripts/rebuild_nvidia_kmod.sh
2024-06-09 04:16:43 -05:00

6 lines
211 B
Bash

#/bin/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