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

Side by Side Diff: user_tools/linux/recovery.sh

Issue 5529006: Allow specifying an alternate config file URL on the commandline. (Closed) Base URL: http://git.chromium.org/git/vboot_reference.git@master
Patch Set: Created 10 years 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 | no next file » | no next file with comments »
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 # This attempts to guide linux users through the process of putting a recovery 7 # This attempts to guide linux users through the process of putting a recovery
8 # image onto a removeable USB drive. 8 # image onto a removeable USB drive.
9 # 9 #
10 # We may not need root privileges if we have the right permissions. 10 # We may not need root privileges if we have the right permissions.
11 # 11 #
12 set -eu 12 set -eu
13 13
14 ############################################################################## 14 ##############################################################################
15 # Configuration goes here 15 # Configuration goes here
16 16
17 # Where should we do our work? Use 'WORKDIR=' to make a temporary directory, 17 # Where should we do our work? Use 'WORKDIR=' to make a temporary directory,
18 # but using a persistent location may let us resume interrupted downloads or 18 # but using a persistent location may let us resume interrupted downloads or
19 # run again without needing to download a second time. 19 # run again without needing to download a second time.
20 WORKDIR=/tmp/tmp.crosrec 20 WORKDIR=/tmp/tmp.crosrec
21 21
22 # Where do we look for the config file? 22 # Where do we look for the config file? Note that we can override this by just
23 CONFIGURL='http://www.chromium.org/some/random/place.cfg' 23 # specifying the config file URL on the command line.
24 CONFIGURL="${1:-http://www.chromium.org/some/random/place.cfg}"
24 25
25 # What version is this script? It must match the 'recovery_tool_version=' value 26 # What version is this script? It must match the 'recovery_tool_version=' value
26 # in the config file that we'll download. 27 # in the config file that we'll download.
27 MYVERSION='1.0' 28 MYVERSION='1.0'
28 29
29 30
30 ############################################################################## 31 ##############################################################################
31 # Some temporary filenames 32 # Some temporary filenames
32 debug='debug.log' 33 debug='debug.log'
33 tmpfile='tmp.txt' 34 tmpfile='tmp.txt'
(...skipping 700 matching lines...) Expand 10 before | Expand all | Expand 10 after
734 ufatal "Unable to write the image." 735 ufatal "Unable to write the image."
735 sync 736 sync
736 737
737 echo " 738 echo "
738 739
739 Done. Remove the USB drive and insert it in your Chrome OS netbook. 740 Done. Remove the USB drive and insert it in your Chrome OS netbook.
740 741
741 " 742 "
742 743
743 exit 0 744 exit 0
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698