-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 26.09.2015 23:45, Alexandre Detiste wrote:
> Ok, then I would duplicate the logic of explain/LINUX-IMAGE script
> in several new "explain" scripts.
>
> https://github.com/a-detiste/cruft/blob/master/explain/LINUX-IMAGE
>
> ..or if there can always be only one version of dkms module present,
this is enough:
Sorry there can be a module for every installed kernel.
E.g.:
Konsole output
dkms status
kdbus, 20150824t110616.0c05fbd, 4.2.0-1-amd64, x86_64: installed
kdbus, 20150824t110616.0c05fbd, 4.2.0-trunk-amd64, x86_64: installed


>
>
> (explain/kdbus-dkms)
>
> #!/bin/dash
> set -e
> ver=$(uname -r)
> test -e /lib/modules/${ver}/updates/dkms/kdbus.ko && echo
/lib/modules/${ver}/updates/dkms/kdbus.ko
>
>
So I assume the first version would be better.
(I assume you would somehow use the dkms status output to find the
versions which are allowed)

Achim
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
Comment: Using GnuPG with Icedove - http://www.enigmail.net/

iEYEARECAAYFAlYHoeIACgkQC2SZD53MXQkKcQCgjFQoio2AqNUyuq3+sDr/2XE6
iGAAnAyRhjg2UxU8lRGX9wOWOEobKxre
=FqEl
-----END PGP SIGNATURE-----

Reply via email to