Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save papamoose/b53f835a94b03747c5d922777efadd31 to your computer and use it in GitHub Desktop.
Save papamoose/b53f835a94b03747c5d922777efadd31 to your computer and use it in GitHub Desktop.
One line to rebuild all DKMS modules on Ubuntu
#!/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