43b70ce224
Since we are using bash syntax in some of the element fragments, we should make sure we use bash for all of them, so that things don't break on systems where /bin/sh != /bin/bash. Change-Id: If2f043c57aa4e1492b7f9839213ef6123f683612
20 lines
458 B
Bash
Executable File
20 lines
458 B
Bash
Executable File
#!/bin/bash
|
|
# 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
|