mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-23 22:51:03 +02:00
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
This commit is contained in:
parent
8d43b4bf8c
commit
c373e2457a
8
mod_for_test_scripts/200disableIdleSuspend
Executable file
8
mod_for_test_scripts/200disableIdleSuspend
Executable file
@ -0,0 +1,8 @@
|
|||||||
|
#!/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"
|
Loading…
x
Reference in New Issue
Block a user