blob: 6c031a8ddc920b8b990d7fe1d21de61ab14fcc45 [file] [log] [blame]
# Copyright (c) 2013 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 "Inhibit powerd for factory testing"
author "chromium-os-dev@chromium.org"
start on starting powerd
stop on stopped powerd
# To start powerd regardless of the presence of factory enabled
# tag, do:
# $ start inhibit-powerd disable_inhibit=1
# $ start powerd
env disable_inhibit=0
pre-start script
. /usr/share/cros/factory_utils.sh
inhibit_if_factory_mode powerd
end script