diff options
author | Samuli Piippo <samuli.piippo@theqtcompany.com> | 2015-01-29 10:34:25 +0200 |
---|---|---|
committer | Samuli Piippo <samuli.piippo@theqtcompany.com> | 2015-01-29 15:26:39 +0200 |
commit | 7c2791f226df89f5b0bcffc2964e96db9dee5f0f (patch) | |
tree | cba198834361f73f36a21a9c10410b5ae3d17e47 /recipes/adbd/files/adb-init | |
parent | 943121c7af2f5db831ded0feb9808f649e58e0b6 (diff) | |
download | meta-boot2qt-7c2791f226df89f5b0bcffc2964e96db9dee5f0f.tar.gz |
Start dbus session bus at boot
Session address is saved to /var/run/dbus/session_bus_address, which is read
in /etc/profile.d/dbus-session-address for interactive login and by adbd for
applications launched from QtCreator.
Change-Id: I8e1f43bdb2f7a7b0450dacf39890cf149459bbf4
Reviewed-by: Rainer Keller <rainer.keller@theqtcompany.com>
Diffstat (limited to 'recipes/adbd/files/adb-init')
-rwxr-xr-x | recipes/adbd/files/adb-init | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/recipes/adbd/files/adb-init b/recipes/adbd/files/adb-init index 92500d7..d8920b8 100755 --- a/recipes/adbd/files/adb-init +++ b/recipes/adbd/files/adb-init | |||
@@ -4,6 +4,10 @@ DAEMON=/usr/bin/adbd | |||
4 | 4 | ||
5 | . /etc/default/adbd | 5 | . /etc/default/adbd |
6 | 6 | ||
7 | if [ -e /var/run/dbus/session_bus_address ]; then | ||
8 | . /var/run/dbus/session_bus_address | ||
9 | fi | ||
10 | |||
7 | case "$1" in | 11 | case "$1" in |
8 | start) | 12 | start) |
9 | if [ "$USE_ETHERNET" = "no" ]; then | 13 | if [ "$USE_ETHERNET" = "no" ]; then |