summaryrefslogtreecommitdiff
path: root/standalone/android/runshell
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2013-02-19 14:56:24 -0400
committerGravatar Joey Hess <joey@kitenet.net>2013-02-19 14:57:45 -0400
commit4e40b54a7516bbc9070faaef31254bd22154684e (patch)
tree084161e52b8ceef67c193a0e43600bbf60c9aec4 /standalone/android/runshell
parentae3b28eb5bfd70ef6f59069ec59abb13ca193d3d (diff)
Android: Support ssh connection caching.
Diffstat (limited to 'standalone/android/runshell')
-rwxr-xr-xstandalone/android/runshell7
1 files changed, 6 insertions, 1 deletions
diff --git a/standalone/android/runshell b/standalone/android/runshell
index b2cb8ee2f..1b0b3e4f6 100755
--- a/standalone/android/runshell
+++ b/standalone/android/runshell
@@ -21,7 +21,7 @@ if [ ! -e "$base/bin/git" ]; then
fi
# Install busybox links.
-if [ ! -e "$base/bin/sh" ]; then
+if [ ! -e "$base/bin/sha256sum" ]; then
echo "(First run detected ... setting up busybox ...)"
"$base/bin/busybox" --install "$base/bin"
fi
@@ -53,6 +53,11 @@ export GIT_TEMPLATE_DIR
GIT_ANNEX_STANDLONE_ENV="PATH GIT_EXEC_PATH GIT_TEMPLATE_DIR"
export GIT_ANNEX_STANDLONE_ENV
+# This is a temporary directory on a non-crippled filesystem.
+GIT_ANNEX_TMP_DIR=$base/tmp
+export GIT_ANNEX_TMP_DIR
+mkdir -p "$GIT_ANNEX_TMP_DIR"
+
if [ "$1" ]; then
cmd="$1"
shift 1