From 2bc680cae6e70c659e146eec555e299c170e54a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guilherme=20Parcer=C3=A3o?= Date: Wed, 17 Apr 2024 20:48:04 -0300 Subject: [PATCH] Added command to delete the driver folder in /var/lib/dkms/ when the driver is removed --- .gitignore | 1 + remove-driver.sh | 2 ++ 2 files changed, 3 insertions(+) diff --git a/.gitignore b/.gitignore index a9ca360..fff02bc 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ *.mod.c Module.symvers modules.order +.vscode/ diff --git a/remove-driver.sh b/remove-driver.sh index 2dab4fd..424b292 100755 --- a/remove-driver.sh +++ b/remove-driver.sh @@ -146,6 +146,8 @@ rm -f /etc/modprobe.d/${OPTIONS_FILE} echo "Removing source files from /usr/src/${DRV_NAME}-${DRV_VERSION}" rm -rf /usr/src/${DRV_NAME}-${DRV_VERSION} make clean >/dev/null 2>&1 +echo "Removing driver from the DKMS tree" +rm -rf /var/lib/dkms/rtl8821cu echo "The driver was removed successfully." echo "You may now delete the driver directory if desired." echo ": ---------------------------"