fwupd/data/fwupd.shutdown.in
Mario Limonciello 96a0dd5606 Add a support for delayed activation
This is intended for devices that it is not safe to immediately activate
the firmware.  It may be called at a more convenient time instead.

Both fwupdmgr and fwupdtool support the feature.

- if called at runtime with fwupdmgr it uses the daemon
- during shutdown fwupdtool uses the pending.db to perform this feature.
2019-02-27 09:04:54 +00:00

8 lines
189 B
Bash
Executable File

#!/bin/sh
# no history database exists
[ -f @localstatedir@/lib/fwupd/pending.db ] || exit 0
# activate firmware when we have a read-only filesysten
@libexecdir@/fwupd/fwupdtool activate