diff options
author | Samuli Piippo <samuli.piippo@digia.com> | 2014-03-12 14:01:21 +0200 |
---|---|---|
committer | Samuli Piippo <samuli.piippo@digia.com> | 2014-03-14 10:03:22 +0200 |
commit | d469a7df484e1916a25d566d53f2d733ae6edbb1 (patch) | |
tree | a4ca4aad6ba42e09f1679d01d778d7349164d837 /recipes/adbd/files/emulator | |
parent | 0975201e0a0e09ec878b210aa461949a3da9c32e (diff) | |
download | meta-boot2qt-d469a7df484e1916a25d566d53f2d733ae6edbb1.tar.gz |
adbd: make switching between usb and ethernet easier
Using settings in /etc/default/adbd, user can easily switch between
usb and ethernet connection for the adbd.
Task-number: QTEE-172
Change-Id: I8652f85878983d0bc9b9139cee6af874b8207fce
Reviewed-by: Rainer Keller <rainer.keller@digia.com>
Diffstat (limited to 'recipes/adbd/files/emulator')
-rwxr-xr-x | recipes/adbd/files/emulator/adb-init | 21 | ||||
-rw-r--r-- | recipes/adbd/files/emulator/defaults | 4 |
2 files changed, 4 insertions, 21 deletions
diff --git a/recipes/adbd/files/emulator/adb-init b/recipes/adbd/files/emulator/adb-init deleted file mode 100755 index 8910e0e..0000000 --- a/recipes/adbd/files/emulator/adb-init +++ /dev/null | |||
@@ -1,21 +0,0 @@ | |||
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 | ||
diff --git a/recipes/adbd/files/emulator/defaults b/recipes/adbd/files/emulator/defaults new file mode 100644 index 0000000..0fbba4c --- /dev/null +++ b/recipes/adbd/files/emulator/defaults | |||
@@ -0,0 +1,4 @@ | |||
1 | VENDOR=0x18d1 | ||
2 | PRODUCT=0x0000 | ||
3 | SERIAL=$(hostname)-$(sed -e 's/://g' /sys/class/net/eth0/address) | ||
4 | USE_ETHERNET=yes | ||