Fix: module not removed on rpm update

Resolves #19
This commit is contained in:
Christoffer Sandberg 2020-05-19 15:45:31 +02:00
parent 40d964fa1c
commit 5ba78bacad
No known key found for this signature in database
GPG key ID: BF563F71B6C7A96D

View file

@ -68,6 +68,7 @@ for POSTINST in /usr/lib/dkms/common.postinst /usr/share/%{module}/postinst; do
if [ -f $POSTINST ]; then if [ -f $POSTINST ]; then
$POSTINST %{module} %{version} /usr/share/%{module} $POSTINST %{module} %{version} /usr/share/%{module}
RET=$? RET=$?
rmmod %{module} > /dev/null 2>&1 || true
modprobe %{module} > /dev/null 2>&1 || true modprobe %{module} > /dev/null 2>&1 || true
# Install default config if none exist already # Install default config if none exist already