#!/bin/sh
set -e

# Get the package version
package=mlnx-nvme
version=`dpkg-query -W -f='${Version}' "$package-dkms" \
    | sed -e 's/[+-].*//'`

dkms remove -m "$package" -v "$version" --all || true

exit 0
