flatcar-scripts/mod_for_test_scripts/200disableIdleSuspend
David James c373e2457a Teach mod_image_for_test to disable idle-suspend features.
This prevents the machine from suspending while it is being tested.

TEST=Modified an image for test and verified that powerd did not suspend.
BUG=chromium-os:3694

Review URL: http://codereview.chromium.org/2620008
2010-06-07 14:54:18 -07:00

9 lines
302 B
Bash
Executable File

#!/bin/bash
# Copyright (c) 2009 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.
mkdir -p "${STATEFUL_DIR}/var/lib/power_manager"
echo 1 > "${STATEFUL_DIR}/var/lib/power_manager/disable_idle_suspend"