summaryrefslogtreecommitdiff
path: root/board/link/userspace/etc/init/ec.conf
diff options
context:
space:
mode:
authorBill Richardson <wfrichar@chromium.org>2012-12-19 11:38:41 -0800
committerBill Richardson <wfrichar@chromium.org>2013-01-08 16:00:07 -0800
commitcf0d9a5529f6a3f3db23b44e8cdd621608e8c2d1 (patch)
tree6e4ddd6c78e2475da403b4d03cd1547dd08e5730 /board/link/userspace/etc/init/ec.conf
parenteb6e08570a46fe641308ff696225acfa1643a5a8 (diff)
downloadchrome-ec-toolchain-3428.65.B.tar.gz
Add AP userspace scripts to tweak lightbar colorstoolchain-3428.65.B
We have yet another tweak for the lightbar, but we don't want to update the EC. This CL adds an init script that runs on the AP at every boot and pokes the EC to modify the lightbar settings. We have to run it at every boot because the EC will hibernate after the AP has been off (not suspended) for an hour on battery power and will lose its settings. There's a corresponding CL for the ec-utils ebuild that installs the userspace scripts into the rootfs. BUG=chrome-os-partner:16827 BRANCH=link TEST=manual Build the image for Link, install, reboot. Run "ectool lightbar params". The output should match what's in /usr/share/ec/lightbar_params.txt Original-Change-Id: If50ac2ef2432f7d60cdaf4c222b68dbdee80b2ec Signed-off-by: Bill Richardson <wfrichar@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/39979 Reviewed-by: Randall Spangler <rspangler@chromium.org> Reviewed-by: Richard Barnette <jrbarnette@chromium.org> (cherry picked from commit 3eb6f58d3e18647797ad4e3f16203c419ed4c791) Change-Id: I11dcb0318a8f499c26abd3ed9ebf65788ff26c66 Reviewed-on: https://gerrit.chromium.org/gerrit/40626 Commit-Queue: Bill Richardson <wfrichar@chromium.org> Reviewed-by: Bill Richardson <wfrichar@chromium.org> Tested-by: Bill Richardson <wfrichar@chromium.org>
Diffstat (limited to 'board/link/userspace/etc/init/ec.conf')
-rw-r--r--board/link/userspace/etc/init/ec.conf13
1 files changed, 13 insertions, 0 deletions
diff --git a/board/link/userspace/etc/init/ec.conf b/board/link/userspace/etc/init/ec.conf
new file mode 100644
index 0000000000..738cb8b2b8
--- /dev/null
+++ b/board/link/userspace/etc/init/ec.conf
@@ -0,0 +1,13 @@
+# Copyright (c) 2012 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.
+
+description "Overrides lightbar params to tweak appearance"
+author "chromium-os-dev@chromium.org"
+
+start on startup
+
+script
+ PARAMS=/usr/share/ec/lightbar_params.txt
+ [ -f "$PARAMS" ] && ectool lightbar params "$PARAMS" >/dev/null 2>&1
+end script