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

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: remove empty lines 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/crosutil.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
146 echo "
147 Your current RO firmware is NOT compatible with the new RW firmware, and needs
148 a RO update. Please make sure you've DISABLED write protection for such
149 special update."
150
151 if [ "$1" = "${FLAGS_TRUE}" ]; then
152 echo "A RO autoupdate is also scheduled in next boot."
153 fi
154
155 echo "
156 If you want to start a manual update immediately, please use command:
157
158 sudo chromeos-firmwareupdate --mode=incompatible_update
159 "
160 }
161
OLDNEW
« no previous file with comments | « no previous file | pack_dist/crosutil.sh » ('j') | pack_dist/updater.sh » ('J')

Powered by Google App Engine
This is Rietveld 408576698