diff options
author | Kalle Viironen <kalle.viironen@digia.com> | 2014-04-15 15:13:33 +0300 |
---|---|---|
committer | Kalle Viironen <kalle.viironen@digia.com> | 2014-04-15 15:13:40 +0300 |
commit | bfb97bc3cc517c42647f5f8b1308bb7b1f4c76f1 (patch) | |
tree | 534bfaffc99f288f395297c625e284fea6e50401 /recipes/adbd/files/adb-init | |
parent | a68e1ea9b2904f7c69330e534da877cf19376219 (diff) | |
parent | 03be9b83d45659d0d98fa1bf69853e0aa297ed32 (diff) | |
download | meta-boot2qt-bfb97bc3cc517c42647f5f8b1308bb7b1f4c76f1.tar.gz |
Merge branch 'stable' into releaseQtEE_v2.1.0
* stable:
wpa-supplicant: include headers and sources for external usage
bootfs: need to use fakeroot for tar'ing
sdk: include bluez4-dev package to sdk
Create boot.tar.gz as part of the image build
image: include CA certificates to image
adbd: use network connection in imx53qsb
sdk: libcap is required for QtWebEngine
Include licenses to the image
adbd: make switching between usb and ethernet easier
use package groups for image content
Create only tar.gz image type
Change from dylan to dora brach in README
mkcard: remove recipe for mkcard
Change-Id: Id56ca219d05f2f833a4de3fc3ca057c5cf50a562
Diffstat (limited to 'recipes/adbd/files/adb-init')
-rwxr-xr-x | recipes/adbd/files/adb-init | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/recipes/adbd/files/adb-init b/recipes/adbd/files/adb-init index 6faed60..92500d7 100755 --- a/recipes/adbd/files/adb-init +++ b/recipes/adbd/files/adb-init | |||
@@ -2,25 +2,27 @@ | |||
2 | 2 | ||
3 | DAEMON=/usr/bin/adbd | 3 | DAEMON=/usr/bin/adbd |
4 | 4 | ||
5 | VENDOR=0x18d1 | 5 | . /etc/default/adbd |
6 | PRODUCT=0x0000 | ||
7 | SERIAL=$(hostname)-$(sed -e 's/://g' /sys/class/net/eth0/address) | ||
8 | 6 | ||
9 | case "$1" in | 7 | case "$1" in |
10 | start) | 8 | start) |
11 | modprobe g_ffs idVendor=${VENDOR} idProduct=${PRODUCT} iSerialNumber=${SERIAL} | 9 | if [ "$USE_ETHERNET" = "no" ]; then |
12 | mkdir -p /dev/usb-ffs | 10 | modprobe g_ffs idVendor=${VENDOR} idProduct=${PRODUCT} iSerialNumber=${SERIAL} |
13 | chmod 770 /dev/usb-ffs | 11 | mkdir -p /dev/usb-ffs |
14 | mkdir -p /dev/usb-ffs/adb | 12 | chmod 770 /dev/usb-ffs |
15 | chmod 770 /dev/usb-ffs/adb | 13 | mkdir -p /dev/usb-ffs/adb |
16 | mount -t functionfs adb /dev/usb-ffs/adb -o uid=0,gid=0 | 14 | chmod 770 /dev/usb-ffs/adb |
15 | mount -t functionfs adb /dev/usb-ffs/adb -o uid=0,gid=0 | ||
16 | fi | ||
17 | start-stop-daemon --start --quiet --exec $DAEMON & | 17 | start-stop-daemon --start --quiet --exec $DAEMON & |
18 | ;; | 18 | ;; |
19 | stop) | 19 | stop) |
20 | start-stop-daemon --stop --quiet --exec $DAEMON | 20 | start-stop-daemon --stop --quiet --exec $DAEMON |
21 | sleep 1 | 21 | if [ "$USE_ETHERNET" = "no" ]; then |
22 | umount /dev/usb-ffs/adb | 22 | sleep 1 |
23 | rmmod g_ffs | 23 | umount /dev/usb-ffs/adb |
24 | rmmod g_ffs | ||
25 | fi | ||
24 | ;; | 26 | ;; |
25 | restart) | 27 | restart) |
26 | start-stop-daemon --stop --quiet --exec $DAEMON | 28 | start-stop-daemon --stop --quiet --exec $DAEMON |