mirror of
https://github.com/wessel-novacustom/clevo-keyboard.git
synced 2024-11-15 03:34:01 +01:00
Fix return value from dkms postinst in spec file
This commit is contained in:
parent
08f2d80ce1
commit
95723a9555
|
@ -65,8 +65,9 @@ rm -rf %{buildroot}
|
|||
for POSTINST in /usr/lib/dkms/common.postinst /usr/share/%{module}/postinst; do
|
||||
if [ -f $POSTINST ]; then
|
||||
$POSTINST %{module} %{version} /usr/share/%{module}
|
||||
RET=$?
|
||||
modprobe %{module} > /dev/null 2>&1 || true
|
||||
exit $?
|
||||
exit $RET
|
||||
fi
|
||||
echo "WARNING: $POSTINST does not exist."
|
||||
done
|
||||
|
|
Loading…
Reference in a new issue