| OLD | NEW |
| 1 #!/bin/bash | 1 #!/bin/bash |
| 2 | 2 |
| 3 # Copyright (c) 2009-2010 The Chromium OS Authors. All rights reserved. | 3 # Copyright (c) 2009-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 to update an image onto a live running ChromiumOS instance. | 7 # Script to update an image onto a live running ChromiumOS instance. |
| 8 | 8 |
| 9 # Load common constants. This should be the first executable line. | 9 # Load common constants. This should be the first executable line. |
| 10 # The path to common.sh should be relative to your script's location. | 10 # The path to common.sh should be relative to your script's location. |
| (...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 351 fi | 351 fi |
| 352 | 352 |
| 353 remote_sh "grep ^CHROMEOS_RELEASE_DESCRIPTION= /etc/lsb-release" | 353 remote_sh "grep ^CHROMEOS_RELEASE_DESCRIPTION= /etc/lsb-release" |
| 354 if [ ${FLAGS_verify} -eq ${FLAGS_TRUE} ]; then | 354 if [ ${FLAGS_verify} -eq ${FLAGS_TRUE} ]; then |
| 355 verify_image | 355 verify_image |
| 356 else | 356 else |
| 357 local release_description=$(echo ${REMOTE_OUT} | cut -d '=' -f 2) | 357 local release_description=$(echo ${REMOTE_OUT} | cut -d '=' -f 2) |
| 358 info "Update was successful and rebooted to $release_description" | 358 info "Update was successful and rebooted to $release_description" |
| 359 fi | 359 fi |
| 360 | 360 |
| 361 print_time_elapsed |
| 362 |
| 361 exit 0 | 363 exit 0 |
| 362 } | 364 } |
| 363 | 365 |
| 364 main $@ | 366 main $@ |
| OLD | NEW |