Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(173)

Unified Diff: src/scripts/mod_for_test_scripts/200disableIdleSuspend

Issue 2620008: Teach mod_image_for_test to disable idle-suspend features. (Closed) Base URL: ssh://git@chromiumos-git/chromeos
Patch Set: Re-upload Created 10 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/scripts/mod_for_test_scripts/200disableIdleSuspend
diff --git a/src/scripts/mod_for_test_scripts/200disableIdleSuspend b/src/scripts/mod_for_test_scripts/200disableIdleSuspend
new file mode 100755
index 0000000000000000000000000000000000000000..fb134f026fc5ebc099b285a140ea48444fe0826d
--- /dev/null
+++ b/src/scripts/mod_for_test_scripts/200disableIdleSuspend
@@ -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"
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698