| # Copyright (c) 2010 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 "Initialize system power management settings at boot" |
| author "chromium-os-dev@chromium.org" |
| |
| # Note, the 'start on' line is modified by factorytest-init ebuild. |
| # Please do not change it without also changing that reference. |
| start on starting system-services |
| |
| env RUN_DIR=/var/run/laptop-mode-tools |
| |
| pre-start script |
| if [ ! -d ${RUN_DIR} ] |
| then |
| mkdir -p ${RUN_DIR} |
| fi |
| touch ${RUN_DIR}/enabled |
| end script |
| |
| exec laptop_mode force |