aboutsummaryrefslogtreecommitdiff
path: root/system/system76-io-dkms/douninst.sh
diff options
context:
space:
mode:
authorErich Ritz <erich.public@protonmail.com>2021-08-10 14:37:22 -0500
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-11-23 01:11:15 +0700
commit9164984e6068edac6a1d2a23f2b25514370ba7c0 (patch)
treec28028b534d95404d6dffa4ade77af6b48e773c7 /system/system76-io-dkms/douninst.sh
parentfa6c85fcad17a20d02bcc14ee339209860feac75 (diff)
system/system76-io-dkms: Add douninst.sh.
The douninst.sh script will remove all versions of the module built by dkms so that this package properly cleans up after itself. Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/system76-io-dkms/douninst.sh')
-rw-r--r--system/system76-io-dkms/douninst.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/system/system76-io-dkms/douninst.sh b/system/system76-io-dkms/douninst.sh
new file mode 100644
index 000000000000..9a5a1e16a0e4
--- /dev/null
+++ b/system/system76-io-dkms/douninst.sh
@@ -0,0 +1,6 @@
+VER=@MODULE_VERSION@
+CONF=etc/dkms/system76-io-$VER.conf
+if [ -r $CONF ]; then
+ dkms remove system76-io/$VER --all -c $CONF
+ rm $CONF
+fi