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

Unified Diff: chromeos_startup

Issue 3418029: Improve factory screen brightness (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/init.git
Patch Set: Change to /usr/sbin/ Created 10 years, 3 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 | lightup_screen » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos_startup
diff --git a/chromeos_startup b/chromeos_startup
index 0b1e6c66675401c6d6f0fa61dadd7f4f47985d27..cf9ac00d26821768df0ef034b45ded4f5ffb8ac2 100755
--- a/chromeos_startup
+++ b/chromeos_startup
@@ -74,6 +74,14 @@ fi
RESET_FILE="/mnt/stateful_partition/factory_install_reset"
if [ -f "$RESET_FILE" ]; then
if [ $(stat -c%u "$RESET_FILE") -eq 0 ]; then
+ # Light up screen in case you can't see our splash image.
+ LIGHTUP_SCREEN=/usr/sbin/lightup_screen
+ if [ -x ${LIGHTUP_SCREEN} ]; then
+ ${LIGHTUP_SCREEN}
+ else
+ echo "${LIGHTUP_SCREEN} does not exist or not executable"
+ fi
+
echo "Erasing stateful partition..."
# Show a splash image to inform OPs it is wiping the disk.
if [ -x /usr/bin/ply-image ]; then
« no previous file with comments | « no previous file | lightup_screen » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698