2013-11-07 04:25:34 +00:00
|
|
|
#!/bin/bash
|
2013-05-24 10:42:36 +00:00
|
|
|
# Trigger a run of dkms for all the modules installed
|
|
|
|
# to ensure we have valid modules build for all.
|
|
|
|
|
|
|
|
modules=$(dkms status | tr ',:' ' ' | awk '{ print $1 "/" $2 }')
|
|
|
|
kernels=$(ls /usr/src/linux-headers-*-*-* -d | sed -e 's|/usr/src/linux-headers-||')
|
|
|
|
__ARCH=$ARCH
|
|
|
|
unset ARCH
|
|
|
|
|
|
|
|
for module in $modules ; do
|
|
|
|
for kernel in $kernels ; do
|
|
|
|
dkms build $module -k $kernel
|
|
|
|
dkms install $module -k $kernel
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
|
|
|
ARCH=$__ARCH
|
|
|
|
|
|
|
|
dkms status
|