| 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 |
| 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 |
| OLD | NEW |