aboutsummaryrefslogtreecommitdiff
path: root/system/system76-io-dkms/doinst.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/doinst.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/doinst.sh')
-rw-r--r--system/system76-io-dkms/doinst.sh6
1 files changed, 2 insertions, 4 deletions
diff --git a/system/system76-io-dkms/doinst.sh b/system/system76-io-dkms/doinst.sh
index 6b33ed6c28651..e7dbe2df63c1c 100644
--- a/system/system76-io-dkms/doinst.sh
+++ b/system/system76-io-dkms/doinst.sh
@@ -1,7 +1,5 @@
VER=@MODULE_VERSION@
dkms install system76-io/$VER
-# Before removing the system76-io package, the following command should
-# be run to unregister the module from dkms:
-#
-# dkms remove system76-io/$VER --all
+# Copy a backup of dkms.conf for module removal by douninst.sh.
+cp usr/src/system76-io-$VER/dkms.conf etc/dkms/system76-io-$VER.conf