connman: move recipe and patches to the proper dir
[scm/bb/meta-tizen.git] / meta-tizen-adaptation / meta / recipes-connectivity / connman / connman / 0003-Add-systemd-service-to-manager-ConnMan-NTP.patch
1 From cdc8865c44bb77e9b7fa664a3669f84f7305718d Mon Sep 17 00:00:00 2001
2 From: Zhang zhengguang <zhengguang.zhang@intel.com>
3 Date: Fri, 4 Jul 2014 14:12:08 +0800
4 Subject: [PATCH 03/32] Add systemd service to manager ConnMan NTP
5
6 ---
7  packaging/40-connman-ntp.list |  1 +
8  packaging/connman-ntp.service | 13 +++++++++++++
9  2 files changed, 14 insertions(+)
10  create mode 100644 packaging/40-connman-ntp.list
11  create mode 100644 packaging/connman-ntp.service
12
13 diff --git a/packaging/40-connman-ntp.list b/packaging/40-connman-ntp.list
14 new file mode 100644
15 index 0000000..9b84282
16 --- /dev/null
17 +++ b/packaging/40-connman-ntp.list
18 @@ -0,0 +1 @@
19 +connman-ntp.service
20 diff --git a/packaging/connman-ntp.service b/packaging/connman-ntp.service
21 new file mode 100644
22 index 0000000..6ca46e2
23 --- /dev/null
24 +++ b/packaging/connman-ntp.service
25 @@ -0,0 +1,13 @@
26 +[Unit]
27 +Description=Connman NTP service
28 +Requires=connman.service
29 +After=connman.service
30 +
31 +[Service]
32 +Type=oneshot
33 +ExecStart=/bin/bash -c "dbus-send --system --type=method_call --print-reply --dest=net.connman / net.connman.Clock.SetProperty string:'TimeUpdates' variant:string:'auto'"
34 +ExecStop=/bin/bash -c "dbus-send --system --type=method_call --print-reply --dest=net.connman / net.connman.Clock.SetProperty string:'TimeUpdates' variant:string:'manual'"
35 +RemainAfterExit=yes
36 +
37 +[Install]
38 +WantedBy=multi-user.target
39 -- 
40 1.8.1.4
41