packaging: Fix: explicitly unload old tuxedo_cc_wmi at rpm install

This commit is contained in:
Christoffer Sandberg 2020-12-08 10:46:11 +01:00
parent 4aa71e4ef0
commit 3100646b69
No known key found for this signature in database
GPG key ID: BF563F71B6C7A96D

View file

@ -88,6 +88,9 @@ for POSTINST in /usr/lib/dkms/common.postinst /usr/share/%{module}/postinst; do
systemctl stop tccd 2>&1 || true systemctl stop tccd 2>&1 || true
fi fi
% Explicitly unload old tuxedo_cc_wmi if loaded at this point
rmmod tuxedo_cc_wmi > /dev/null 2>&1 || true
echo "(Re)load modules if possible" echo "(Re)load modules if possible"
rmmod tuxedo_io > /dev/null 2>&1 || true rmmod tuxedo_io > /dev/null 2>&1 || true