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

Side by Side 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, 2 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | lightup_screen » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/sh 1 #!/bin/sh
2 2
3 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. 3 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 # The kernel mounts /proc and /sys during initialization, prior 7 # The kernel mounts /proc and /sys during initialization, prior
8 # to starting init. 8 # to starting init.
9 9
10 # Mount /tmp first, so that bootstat can record output right away. 10 # Mount /tmp first, so that bootstat can record output right away.
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 if [ -x "$FIRMWARE_UPDATE_SCRIPT" ]; then 67 if [ -x "$FIRMWARE_UPDATE_SCRIPT" ]; then
68 "$FIRMWARE_UPDATE_SCRIPT" 68 "$FIRMWARE_UPDATE_SCRIPT"
69 fi 69 fi
70 fi 70 fi
71 71
72 # Check if the stateful partition has requested self-destruction 72 # Check if the stateful partition has requested self-destruction
73 # This is used for the factory install process 73 # This is used for the factory install process
74 RESET_FILE="/mnt/stateful_partition/factory_install_reset" 74 RESET_FILE="/mnt/stateful_partition/factory_install_reset"
75 if [ -f "$RESET_FILE" ]; then 75 if [ -f "$RESET_FILE" ]; then
76 if [ $(stat -c%u "$RESET_FILE") -eq 0 ]; then 76 if [ $(stat -c%u "$RESET_FILE") -eq 0 ]; then
77 # Light up screen in case you can't see our splash image.
78 LIGHTUP_SCREEN=/usr/sbin/lightup_screen
79 if [ -x ${LIGHTUP_SCREEN} ]; then
80 ${LIGHTUP_SCREEN}
81 else
82 echo "${LIGHTUP_SCREEN} does not exist or not executable"
83 fi
84
77 echo "Erasing stateful partition..." 85 echo "Erasing stateful partition..."
78 # Show a splash image to inform OPs it is wiping the disk. 86 # Show a splash image to inform OPs it is wiping the disk.
79 if [ -x /usr/bin/ply-image ]; then 87 if [ -x /usr/bin/ply-image ]; then
80 echo 0 > /sys/devices/virtual/graphics/fbcon/cursor_blink 88 echo 0 > /sys/devices/virtual/graphics/fbcon/cursor_blink
81 cp -f /mnt/stateful_partition/wipe_splash.png /tmp/ 89 cp -f /mnt/stateful_partition/wipe_splash.png /tmp/
82 /usr/bin/ply-image /tmp/wipe_splash.png & 90 /usr/bin/ply-image /tmp/wipe_splash.png &
83 fi 91 fi
84 FAST=$(cat $RESET_FILE) 92 FAST=$(cat $RESET_FILE)
85 if [ "$FAST" = "fast" ]; then 93 if [ "$FAST" = "fast" ]; then
86 exec /sbin/clobber-state fast 94 exec /sbin/clobber-state fast
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 # 180 #
173 ureadahead & 181 ureadahead &
174 182
175 # Some things freak out if no hostname is set. 183 # Some things freak out if no hostname is set.
176 hostname localhost 184 hostname localhost
177 185
178 bootstat post-startup 186 bootstat post-startup
179 187
180 # Always return success to avoid killing init 188 # Always return success to avoid killing init
181 exit 0 189 exit 0
OLDNEW
« 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