2 # SPDX-License-Identifier: NOASSERTION
5 # This file is part of Lustre, http://www.lustre.org/
7 # debian/lustre-client-module-dkms.postinst
9 # Script run after Lustre DKMS modules are installed
14 # Get the package version
15 package="lustre-client-modules"
16 version="$(dpkg-query -W -f='${Version}' "${package}-dkms" | sed -e 's/-[^-]*$//')"
18 dkms add -m "${package}" -v "${version}"
19 dkms build -m "${package}" -v "${version}" && dkms install -m "${package}" -v "${version}" --force || true