summaryrefslogtreecommitdiff
path: root/standalone
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2013-05-03 01:00:00 -0400
committerGravatar Joey Hess <joey@kitenet.net>2013-05-03 01:00:00 -0400
commit5d16bf61c0f93583b033779f337534f0f822e58a (patch)
tree3f3f592aa4ceeaf0134f0792540c46128c22359e /standalone
parentdd7686057df90767be90d86887511350a98574d1 (diff)
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.
Diffstat (limited to 'standalone')
-rwxr-xr-xstandalone/android/runshell10
1 files changed, 6 insertions, 4 deletions
diff --git a/standalone/android/runshell b/standalone/android/runshell
index 47fe9d884..ba8395778 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
}