From b3a32737415ac33de6c53164eae14c3df0c49a2c Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Fri, 3 May 2013 01:00:00 -0400 Subject: [PATCH] improved runshell start Start webapp in nohup so it doesn't close when window is closed and so it doesn't output stuff over the shell prompt. --- standalone/android/runshell | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/standalone/android/runshell b/standalone/android/runshell index 47fe9d8842..ba8395778b 100755 --- a/standalone/android/runshell +++ b/standalone/android/runshell @@ -74,9 +74,6 @@ install () { } run () { - # As good a start point as any. - cd "$HOME" - PATH="$base/bin:$PATH" export PATH @@ -104,7 +101,12 @@ run () { shift 1 exec "$cmd" "$@" else - git annex webapp & + # As good a start point as any. + if $cmd test -d "$HOME"; then + cd "$HOME" + fi + $cmd echo "Starting webapp ..." + $cmd nohup git annex webapp >/dev/null & /system/bin/sh fi }