blob: 82556fd51730cde4aa841c79a7e698c4bdbbf19c [file] [log] [blame]
#!/bin/sh
# Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# NOTE: This script is invoked by powerd_suspend each time the system resumes.
# If any changes are made to this script, remember to update powerd_suspend,
# as needed.
# File to store firmware information derived from firmware event log
EVENTLOG_FILE="/var/log/eventlog.txt"
# Set up bios information for chrome://system and userfeedback
# Need to do this before user can request it in Chrome.
# Moved here to keep out of critical boot path
if ! mosys eventlog list > ${EVENTLOG_FILE} 2> /dev/null; then
# If a mosys sub-command is not available, mosys will fail with a non-zero
# exit code and print the help menu. Write the output only if the command
# succeeded.
echo "unavailable" > ${EVENTLOG_FILE}
fi