Use make uninstall when dkms not present on remove-driver.sh
This commit is contained in:
parent
761a1b6f8f
commit
2f04514650
@ -50,7 +50,12 @@ done
|
|||||||
echo "Running ${SCRIPT_NAME} version ${SCRIPT_VERSION}"
|
echo "Running ${SCRIPT_NAME} version ${SCRIPT_VERSION}"
|
||||||
echo "Starting removal..."
|
echo "Starting removal..."
|
||||||
|
|
||||||
|
if ! command -v dkms >/dev/null 2>&1
|
||||||
|
then
|
||||||
|
make uninstall
|
||||||
|
else
|
||||||
dkms remove -m ${DRV_NAME} -v ${DRV_VERSION} --all
|
dkms remove -m ${DRV_NAME} -v ${DRV_VERSION} --all
|
||||||
|
fi
|
||||||
RESULT=$?
|
RESULT=$?
|
||||||
|
|
||||||
# RESULT will be 3 if there are no instances of module to remove
|
# RESULT will be 3 if there are no instances of module to remove
|
||||||
|
Loading…
x
Reference in New Issue
Block a user