blob: 2b32aa775b9002612ea86cf261a4839c3661f971 [file] [log] [blame]
# Copyright 2015 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 known kernel errors once per boot"
author ""
start on started system-services
dmesg_matches() {
if dmesg | grep -q "$1"; then
echo 1
echo 0
# The metrics library requires a max value of 2 rather than 1
# (
metrics_client -e Platform.BatteryAbsent $(
dmesg_matches "ACPI: Battery Slot.*absent") 2
end script