OLD | NEW |
1 #!/bin/sh | 1 #!/bin/sh |
2 | 2 |
| 3 # Copyright (c) 2009 The Chromium OS Authors. All rights reserved. |
| 4 # Use of this source code is governed by a BSD-style license that can be |
| 5 # found in the LICENSE file. |
| 6 |
| 7 # Script to push the output of build_image.sh to a remote image server |
| 8 |
3 # Load common constants. This should be the first executable line. | 9 # Load common constants. This should be the first executable line. |
4 # 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. |
5 . "$(dirname "$0")/common.sh" | 11 . "$(dirname "$0")/common.sh" |
6 | 12 |
7 # Flags | 13 # Flags |
8 DEFINE_string upgrade_server "" "SSH-capable host for upgrade server install" | 14 DEFINE_string upgrade_server "" "SSH-capable host for upgrade server install" |
9 DEFINE_string dest_path "" "Directory on host to do install" | 15 DEFINE_string dest_path "" "Directory on host to do install" |
10 DEFINE_string client_address "" "IP Address of netbook to update" | 16 DEFINE_string client_address "" "IP Address of netbook to update" |
11 DEFINE_string server_address "" "IP Address of upgrade server" | 17 DEFINE_string server_address "" "IP Address of upgrade server" |
12 DEFINE_boolean start_server ${FLAGS_TRUE} "Start up the server" | 18 DEFINE_boolean start_server ${FLAGS_TRUE} "Start up the server" |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 echo "Running ${SCRIPTS_DIR}/image_to_live.sh $live_args" | 197 echo "Running ${SCRIPTS_DIR}/image_to_live.sh $live_args" |
192 ${SCRIPTS_DIR}/image_to_live.sh $live_args & | 198 ${SCRIPTS_DIR}/image_to_live.sh $live_args & |
193 else | 199 else |
194 echo "Start client upgrade using:" | 200 echo "Start client upgrade using:" |
195 echo " ${SCRIPTS_DIR}/image_to_live.sh ${live_args}<client_ip_address>" | 201 echo " ${SCRIPTS_DIR}/image_to_live.sh ${live_args}<client_ip_address>" |
196 fi | 202 fi |
197 | 203 |
198 wait ${server_pid} | 204 wait ${server_pid} |
199 fi | 205 fi |
200 | 206 |
OLD | NEW |