mirror of
https://github.com/wessel-novacustom/clevo-keyboard.git
synced 2025-01-18 11:32:50 +01:00
Fix return value from dkms postinst in spec file
This commit is contained in:
parent
08f2d80ce1
commit
95723a9555
1 changed files with 2 additions and 1 deletions
|
@ -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