connman: add patch to create read-only device when using nfsroot
[opendreambox.git] / meta-opendreambox / recipes-connectivity / connman / connman / 0002-replace-hardcode-and-add-EnvironmentFile-and-Wants.patch
1 From 30b26aa39c9897058f3219c449cc54cb1ba9b191 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 2/2] replace hardcode, and 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 7b6195e..01bdcb4 100644
15 --- a/src/connman.service.in
16 +++ b/src/connman.service.in
17 @@ -3,12 +3,14 @@ Description=Connection service
18  Requires=dbus.socket
19  After=dbus.socket
20  Before=remote-fs.target
21 +Wants=connman-env.service
22  
23  [Service]
24  Type=dbus
25  BusName=net.connman
26  Restart=on-failure
27 -ExecStart=@prefix@/sbin/connmand -n
28 +EnvironmentFile=-@localstatedir@/run/connmand/connmand.env
29 +ExecStart=@sbindir@/connmand -n $CONNMAND_OPTS
30  StandardOutput=null
31  
32  [Install]
33 -- 
34 1.9.1
35