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

Unified Diff: remote_access.sh

Issue 6031005: update_kernel: first cut at arm support (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/crosutils.git@master
Patch Set: Fixed comments from first round Created 9 years, 11 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
« no previous file with comments | « no previous file | update_kernel.sh » ('j') | update_kernel.sh » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remote_access.sh
diff --git a/remote_access.sh b/remote_access.sh
index 222fdf7e943399431ffa048a86e0f01d951be3be..bdd9b242adb917a950b72f2fe39f0761c4a1b3c0 100644
--- a/remote_access.sh
+++ b/remote_access.sh
@@ -83,6 +83,17 @@ function wait_with_timeout() {
! is_pid_running ${pid}
}
+function learn_arch() {
+ [ -n "${FLAGS_arch}" ] && return
+ remote_sh uname -m
+ FLAGS_arch=$(echo "${REMOTE_OUT}" | sed s/armv7l/arm/g)
+ if [ -z "${FLAGS_arch}" ]; then
+ error "Arch required"
+ exit 1
+ fi
+ info "Target reports arch is ${FLAGS_arch}"
+}
+
# Checks to see if a machine has rebooted using the presence of a tmp file.
function check_if_rebooted() {
local output_file="${TMP}/output"
« no previous file with comments | « no previous file | update_kernel.sh » ('j') | update_kernel.sh » ('J')

Powered by Google App Engine
This is Rietveld 408576698