diff options
author | Samuli Piippo <samuli.piippo@digia.com> | 2013-07-03 10:39:28 +0300 |
---|---|---|
committer | Samuli Piippo <samuli.piippo@digia.com> | 2013-07-08 10:39:25 +0300 |
commit | 10b5f28c71d618601b50735a9d8c017dc0fbbb5d (patch) | |
tree | 8300ece75eb048e97cd554cf7097c18cfb0a1e85 /recipes/adbd/files | |
parent | 278ea611017e85f4e059455fde5e9080efde2fa3 (diff) | |
download | meta-boot2qt-10b5f28c71d618601b50735a9d8c017dc0fbbb5d.tar.gz |
adbd: add emulator specific init script
Change-Id: Id5fc2758395d6cfdeb501b4917f55ce16318e9d3
Reviewed-by: Samuli Piippo <samuli.piippo@digia.com>
Diffstat (limited to 'recipes/adbd/files')
-rwxr-xr-x | recipes/adbd/files/emulator/adb-init | 21 |
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 | |||
3 | DAEMON=/usr/bin/adbd | ||
4 | |||
5 | case "$1" in | ||
6 | start) | ||
7 | start-stop-daemon --start --quiet --exec $DAEMON & | ||
8 | ;; | ||
9 | stop) | ||
10 | start-stop-daemon --stop --quiet --exec $DAEMON | ||
11 | ;; | ||
12 | restart) | ||
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 | ||
20 | esac | ||
21 | exit 0 | ||