summaryrefslogtreecommitdiffstats
path: root/recipes/adbd/files
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/adbd/files')
-rwxr-xr-xrecipes/adbd/files/emulator/adb-init21
1 files changed, 21 insertions, 0 deletions
diff --git a/recipes/adbd/files/emulator/adb-init b/recipes/adbd/files/emulator/adb-init
new file mode 100755
index 0000000..8910e0e
--- /dev/null
+++ b/recipes/adbd/files/emulator/adb-init
@@ -0,0 +1,21 @@
1#!/bin/sh
2
3DAEMON=/usr/bin/adbd
4
5case "$1" in
6start)
7 start-stop-daemon --start --quiet --exec $DAEMON &
8 ;;
9stop)
10 start-stop-daemon --stop --quiet --exec $DAEMON
11 ;;
12restart)
13 start-stop-daemon --stop --quiet --exec $DAEMON
14 sleep 1
15 start-stop-daemon --start --quiet --exec $DAEMON &
16 ;;
17*)
18 echo "Usage: $0 {start|stop|restart}"
19 exit 1
20esac
21exit 0