When I install my app, I would like to copy some files in /lib/modules/KERNEL_VERSION/extra
.
The problem of course is that KERNEL_VERSION
is not fixed.
I can find it by calling "uname -r"
, but how do I do this in a rpm spec file?
Also, if there's a better method, I'm opened to ideas.
You could interpolate the result of uname -r
into the directory (guessing here):
/lib/modules/`uname -r`/extra/