summaryrefslogtreecommitdiffstats
path: root/recipes/adbd/files/emulator
diff options
context:
space:
mode:
authorSamuli Piippo <samuli.piippo@digia.com>2014-03-12 14:01:21 +0200
committerSamuli Piippo <samuli.piippo@digia.com>2014-03-14 10:03:22 +0200
commitd469a7df484e1916a25d566d53f2d733ae6edbb1 (patch)
treea4ca4aad6ba42e09f1679d01d778d7349164d837 /recipes/adbd/files/emulator
parent0975201e0a0e09ec878b210aa461949a3da9c32e (diff)
downloadmeta-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-xrecipes/adbd/files/emulator/adb-init21
-rw-r--r--recipes/adbd/files/emulator/defaults4
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
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
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 @@
1VENDOR=0x18d1
2PRODUCT=0x0000
3SERIAL=$(hostname)-$(sed -e 's/://g' /sys/class/net/eth0/address)
4USE_ETHERNET=yes