Created
November 17, 2019 13:15
-
-
Save mailinglists35/6d3c393657bc6843fe1723ce8e6a206c to your computer and use it in GitHub Desktop.
rebuild dkms
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for k in $(ls /var/lib/initramfs-tools) ; do | |
for d in $(cd /usr/src; ls -d *-*) ; do | |
[[ -f /usr/src/${d}/dkms.conf ]] || continue | |
m=$(echo $d | sed -r -e 's/-([0-9]).+//') | |
v=$(echo $d | sed -r -e 's/[^0-9]+-([0-9])/\1/') | |
sudo /usr/sbin/dkms install -c /usr/src/$d/dkms.conf -m $m -v $v -k $k | |
done | |
done | |
via https://askubuntu.com/a/1012619 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment