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

Side by Side Diff: pack_dist/common.sh

Issue 6677151: chromeos-firmware: refine 'incompatibility mode' customization design (Closed) Base URL: ssh://gitrw.chromium.org:9222/firmware.git@master
Patch Set: Created 9 years, 8 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 | pack_dist/updater.sh » ('j') | pack_dist/updater.sh » ('J')
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 SCRIPT_BASE="$(dirname "$0")" 7 SCRIPT_BASE="$(dirname "$0")"
8 if [ -s "$SCRIPT_BASE/shflags" ]; then 8 if [ -s "$SCRIPT_BASE/shflags" ]; then
9 . "$SCRIPT_BASE/shflags" 9 . "$SCRIPT_BASE/shflags"
10 else 10 else
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 # Prints a standard "unkonwn platform" error message 133 # Prints a standard "unkonwn platform" error message
134 alert_unknown_platform() { 134 alert_unknown_platform() {
135 # Sytnax: alert_unknown_platform CURRENT EXPECTED 135 # Sytnax: alert_unknown_platform CURRENT EXPECTED
136 echo " 136 echo "
137 Sorry, this firmware update is only for $2 platform. 137 Sorry, this firmware update is only for $2 platform.
138 Your system ($1) is either incompatible or using an 138 Your system ($1) is either incompatible or using an
139 unknown version of firmware. 139 unknown version of firmware.
140 " 140 "
141 } 141 }
142 142
143 # Prints a "incompatible" warning message
144 alert_incompatible_firmware() {
145 # Syntax: alert_incompatible_firmware reboot_will_autoupdate
Randall Spangler 2011/04/05 16:42:38 Seems like this should print only one of the two m
Hung-Te 2011/04/06 02:02:51 The original idea was to try update, and still let
146 echo "
147 Your current firmware is NOT compatible and needs a RO update in next boot.
148 Please make sure you've disabled write protection, and manually invoke the
149 following command:
150
151 sudo chromeos-firmwareupdate --mode=factory_install
152 "
153 if [ "$1" = "${FLAGS_TRUE}" ]; then
154 echo "A RO autoupdate is also scheduled in next boot."
155 fi
156 }
157
OLDNEW
« no previous file with comments | « no previous file | pack_dist/updater.sh » ('j') | pack_dist/updater.sh » ('J')

Powered by Google App Engine
This is Rietveld 408576698