mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-08 05:26:58 +02:00
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
9 lines
302 B
Bash
Executable File
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"
|