1234567891011121314151617181920212223242526272829303132333435363738 |
- # Copyright 2016 The ChromiumOS Authors
- # Use of this source code is governed by a BSD-style license that can be
- # found in the LICENSE file.
- #
- # This script first determines if it needs to run at all: if the cr50 firmware
- # image is not present in the local directory this must be happening on a
- # board without a cr50 device, no need to do anything.
- #
- # If the firmware image is present, the script checks the number of previous
- # runs saved in a state file. The file name is bound to the firmware image, if
- # the firmware image changes, the name of the state file will also have to
- # change.
- #
- # In most cases one firmware update run will be enough, but sometimes more
- # than one step will be required (when updating from an old cr50 version or
- # when rotating RW keys). The entire chromebook needs to be restarted between
- # cr50 update runs, up to four update runs on a particular firmware image are
- # allowed by this script.
- #
- # The gsctool utility exit status indicates if more runs are required. Exit
- # status of 0 means update has succeeded. Other exit statuses are processed by
- # the follow up startup script cr50-result.conf.
- #
- description "Chromium OS startup file for cr50 firmware updater"
- author "chromium-os-dev@chromium.org"
- oom score -100
- # Starts on boot-services by exception, since it triggers a long chain of
- # dependant tpm-related daemons that need to start early. Normally services
- # should start on 'starting system-services'.
- start on started boot-services
- script
- exit 0
- end script
|