Recompile all kernel modules using DKMS

With the Dynamic Kernel Module Support (DKMS) framework compiling modules is very comfortable. However, one major drawback is the lack of rebuilding all modules at once. One has to specify each module, each version and each kernel. The following lines let you recompile all modules for the current kernel:

[bash]
for mod in `dkms status | cut -d, -f1 | uniq`;
do for ver in `dkms status | cut -d, -f2 | uniq`;
do dkms remove -m $mod -v $ver -k `uname -r` && dkms build -m $mod -v $ver -k `uname -r` && dkms install -m $mod -v $ver -k `uname -r`;
done;
done
[/bash]

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert.