connman: fix out-of-tree build and nfsroot
[opendreambox.git] / meta-opendreambox / recipes-connectivity / connman / connman / 0003-Add-EnvironmentFile-and-Wants.patch
1 From 4d8214c2592857a0b9e36851a5fb61d158c20b39 Mon Sep 17 00:00:00 2001
2 From: Andreas Oberritter <obi@opendreambox.org>
3 Date: Tue, 5 Aug 2014 15:18:24 +0200
4 Subject: [PATCH 3/3] Add EnvironmentFile and Wants
5
6 Upstream-Status: Inappropriate [distribution]
7
8 Signed-off-by: Roy Li <rongqing.li@windriver.com>
9 ---
10  src/connman.service.in | 4 +++-
11  1 file changed, 3 insertions(+), 1 deletion(-)
12
13 diff --git a/src/connman.service.in b/src/connman.service.in
14 index ba4dedd..1d0c07d 100644
15 --- a/src/connman.service.in
16 +++ b/src/connman.service.in
17 @@ -4,12 +4,14 @@ Requires=dbus.socket
18  After=dbus.socket
19  Before=remote-fs-pre.target
20  Wants=remote-fs-pre.target
21 +Wants=connman-env.service
22  
23  [Service]
24  Type=dbus
25  BusName=net.connman
26  Restart=on-failure
27 -ExecStart=@sbindir@/connmand -n
28 +EnvironmentFile=-/run/connmand/connmand.env
29 +ExecStart=@sbindir@/connmand -n $CONNMAND_OPTS
30  StandardOutput=null
31  
32  [Install]
33 -- 
34 1.9.1
35