Compile u2mfn module only when not already present

If someone want to force rebuild, he/she always can call dkms manually.
This commit is contained in:
Marek Marczykowski-Górecki 2015-03-22 03:52:33 +01:00
parent bc7a2091db
commit ba51d32758

View File

@ -28,7 +28,9 @@ basedir=/var/lib/qubes/vm-kernels
function recompile_u2mfn() { function recompile_u2mfn() {
kver=$1 kver=$1
u2mfn_ver=`dkms status u2mfn|tail -n 1|cut -f 2 -d ' '|tr -d ':,'` u2mfn_ver=`dkms status u2mfn|tail -n 1|cut -f 2 -d ' '|tr -d ':,'`
dkms install u2mfn/$u2mfn_ver -k $kver --no-initrd if ! modinfo -k "$kver" -n u2mfn >/dev/null; then
dkms install u2mfn/$u2mfn_ver -k $kver --no-initrd
fi
} }
function build_modules_img() { function build_modules_img() {