blob: 5f9b86ba7d9a6be1d1dbd3fd90ee4de694651786 [file] [log] [blame]
# Copyright (c) 2014 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.
description "Report the EC being in TPSRESET state"
author ""
start on started system-services
# Check if the EC is in TPSRESET state and if so report it, but only once
# (by design, the EC stays in that state forever).
if ectool chipinfo | grep -q TPSRESET &&
test ! -f $EC_RESET_FILE
metrics_client -v Ec.TpsReset
su chronos -c "touch $EC_RESET_FILE"
end script