Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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 | |
| OLD | NEW |