summaryrefslogtreecommitdiffstats
path: root/meta/recipes-connectivity/connman/connman-0.75/connman
diff options
context:
space:
mode:
authorDongxiao Xu <dongxiao.xu@intel.com>2011-06-28 15:58:40 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-06-29 14:46:54 +0100
commit53de954ae433326d09f4cdcfd63d8241ba935980 (patch)
tree5a88e777bca060c1d7292bcf63859cb309a41ea5 /meta/recipes-connectivity/connman/connman-0.75/connman
parent6873c1adea0dee712e2636da9e90bc755a6b4097 (diff)
downloadpoky-53de954ae433326d09f4cdcfd63d8241ba935980.tar.gz
connman: Upgrade to version 0.75
Enable ofono plugin. Adopt some logic in meta-oe on connman plugin runtime dependency. Remove the fix-shutdown-ap-disconnect.patch since the original logic no longer exists. Add Upstream-Status information for patches. (From OE-Core rev: 7d24ef3454d2bcdf175c17206c8016bafe5e9372) Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-connectivity/connman/connman-0.75/connman')
-rw-r--r--meta/recipes-connectivity/connman/connman-0.75/connman62
1 files changed, 62 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/connman/connman-0.75/connman b/meta/recipes-connectivity/connman/connman-0.75/connman
new file mode 100644
index 0000000000..f01bf371c2
--- /dev/null
+++ b/meta/recipes-connectivity/connman/connman-0.75/connman
@@ -0,0 +1,62 @@
1#!/bin/sh
2
3DAEMON=/usr/sbin/connmand
4PIDFILE=/var/run/connmand.pid
5DESC="Connection Manager"
6
7if [ -f /etc/default/connman ] ; then
8 . /etc/default/connman
9fi
10
11set -e
12
13nfsroot=0
14
15exec 9<&0 < /proc/mounts
16while read dev mtpt fstype rest; do
17 if test $mtpt = "/" ; then
18 case $fstype in
19 nfs | nfs4)
20 nfsroot=1
21 break
22 ;;
23 *)
24 ;;
25 esac
26 fi
27done
28
29do_start() {
30 EXTRA_PARAM=""
31 if test $nfsroot -eq 1 ; then
32 EXTRA_PARAM="-P ethernet"
33 fi
34 $DAEMON $EXTRA_PARAM
35}
36
37do_stop() {
38 start-stop-daemon --stop --name connmand --quiet
39}
40
41case "$1" in
42 start)
43 echo "Starting $DESC"
44 do_start
45 ;;
46 stop)
47 echo "Stopping $DESC"
48 do_stop
49 ;;
50 restart|force-reload)
51 echo "Restarting $DESC"
52 do_stop
53 sleep 1
54 do_start
55 ;;
56 *)
57 echo "Usage: $0 {start|stop|restart|force-reload}" >&2
58 exit 1
59 ;;
60esac
61
62exit 0