trivial: fix shutdown error on fwupdtool activate

EXIT_NOTHING_TO_DO needs to be caught by the shutdown script too.
Fixes: #2463
This commit is contained in:
Mario Limonciello 2020-10-12 08:30:27 -05:00 committed by Mario Limonciello
parent e8e7a16c2e
commit 02d9d23f13

View File

@ -4,4 +4,8 @@
[ -f @localstatedir@/lib/fwupd/pending.db ] || exit 0
# activate firmware when we have a read-only filesysten
@bindir@/fwupdtool activate
if !@bindir@/fwupdtool activate; then
ret=$?
[ "$ret" -eq "2" ] && exit 0
exit $ret
fi