From 5ba78bacad5c59acb7b095a3125c28d3e619bf63 Mon Sep 17 00:00:00 2001 From: Christoffer Sandberg Date: Tue, 19 May 2020 15:45:31 +0200 Subject: [PATCH] Fix: module not removed on rpm update Resolves #19 --- src_pkg/rpm_pkg.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/src_pkg/rpm_pkg.spec b/src_pkg/rpm_pkg.spec index 1faa8b9..44cb093 100644 --- a/src_pkg/rpm_pkg.spec +++ b/src_pkg/rpm_pkg.spec @@ -68,6 +68,7 @@ for POSTINST in /usr/lib/dkms/common.postinst /usr/share/%{module}/postinst; do if [ -f $POSTINST ]; then $POSTINST %{module} %{version} /usr/share/%{module} RET=$? + rmmod %{module} > /dev/null 2>&1 || true modprobe %{module} > /dev/null 2>&1 || true # Install default config if none exist already