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

Unified Diff: chromeos-base/power_manager/power_manager-9999.ebuild

Issue 6797001: power_manager : Allow nocrit use flag to disable low batt shutdown. (Closed) Base URL: ssh://gitrw.chromium.org:9222/chromiumos-overlay.git@master
Patch Set: Created 9 years, 9 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: chromeos-base/power_manager/power_manager-9999.ebuild
diff --git a/chromeos-base/power_manager/power_manager-9999.ebuild b/chromeos-base/power_manager/power_manager-9999.ebuild
index 165fafc64116b2b185d5d1239eb1fefdf202104f..18aaa16f7a4ae4dc080b5527cee351b7ecbfabc2 100644
--- a/chromeos-base/power_manager/power_manager-9999.ebuild
+++ b/chromeos-base/power_manager/power_manager-9999.ebuild
@@ -9,7 +9,7 @@ DESCRIPTION="Power Manager for Chromium OS"
HOMEPAGE="http://src.chromium.org"
LICENSE="BSD"
SLOT="0"
-IUSE="-new_power_button test -lockvt -touchui"
+IUSE="-new_power_button test -lockvt -touchui -nocrit"
KEYWORDS="~amd64 ~arm ~x86"
RDEPEND="chromeos-base/libcros
@@ -122,6 +122,11 @@ src_install() {
insinto "/etc/udev/rules.d"
doins "${S}/99-light-sensor.rules"
+ if use nocrit; then
Sameer Nanda 2011/04/05 15:48:29 can you add a comment here as to what nocrit means
Benson Leung 2011/04/05 22:33:30 Done.
+ echo "0" > \
+ "${D}/usr/share/power_manager/low_battery_suspend_percent"
+ fi
+
if use touchui; then
if [ ! -e "${D}/usr/share/power_manager/use_lid" ]; then
die "use_lid config file missing"
« 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