Forked from Brainiarc7/One line to rebuild all DKMS modules on Ubuntu
Last active
February 4, 2023 19:44
-
-
Save papamoose/b53f835a94b03747c5d922777efadd31 to your computer and use it in GitHub Desktop.
One line to rebuild all DKMS modules on Ubuntu
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
#!/bin/bash | |
ls -d /usr/src/linux-headers-* \ | |
| sed -e 's/.*linux-headers-//' \ | |
| grep generic \ | |
| sort -V \ | |
| tac \ | |
| sudo xargs -n1 /usr/lib/dkms/dkms_autoinstaller start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment