Skip to content

Commit 0ea8274

Browse files
committed
etc: adb_run_wrapper added
1 parent 5076bca commit 0ea8274

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

src/etc/adb_run_wrapper.sh

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
2+
PATH=$(echo $0 | sed 's#/[^/]*$##')
3+
RUN=$1
4+
5+
if [ ! -z "$RUN" ]
6+
then
7+
shift
8+
while [ -f $PATH/lock ]
9+
do
10+
sleep 1
11+
done
12+
touch $PATH/lock
13+
LD_LIBRARY_PATH=$PATH $PATH/$RUN $@ 1>$PATH/$RUN.stdout 2>$PATH/$RUN.stderr
14+
echo $? > $PATH/$RUN.exitcode
15+
/system/bin/rm $PATH/lock
16+
fi
17+

0 commit comments

Comments
 (0)