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

Unified Diff: src/scripts/remote_access.sh

Issue 1784006: Changes to image_to_live to copy stateful partition over (Closed) Base URL: ssh://git@chromiumos-git//chromeos
Patch Set: Created 10 years, 8 months 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 side-by-side diff with in-line comments
Download patch
« src/scripts/image_to_live.sh ('K') | « src/scripts/image_to_live.sh ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/scripts/remote_access.sh
diff --git a/src/scripts/remote_access.sh b/src/scripts/remote_access.sh
index 43a64ad1875e8b64fc8bc33f540f84bdfe0820de..fe4383c27c0d7bd2b3068db6388bdd8c2b23d6b1 100644
--- a/src/scripts/remote_access.sh
+++ b/src/scripts/remote_access.sh
@@ -11,6 +11,13 @@ DEFINE_string remote "" "remote hostname/IP of running Chromium OS instance"
DEFINE_string private_key "$DEFAULT_PRIVATE_KEY" \
"Private key of root account on remote host"
+# Copies $1 to $2 on remote host
+function remote_cp() {
+ REMOTE_OUT=$(scp -o StrictHostKeyChecking=no -o \
+ UserKnownHostsFile=$TMP_KNOWN_HOSTS $1 root@$FLAGS_remote:$2)
+ return ${PIPESTATUS[0]}
+}
+
function remote_sh() {
REMOTE_OUT=$(ssh -o StrictHostKeyChecking=no -o \
UserKnownHostsFile=$TMP_KNOWN_HOSTS root@$FLAGS_remote "$@")
« src/scripts/image_to_live.sh ('K') | « src/scripts/image_to_live.sh ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698