From a6faa8fb195b3080f9ca802c95ff85bf89563446 Mon Sep 17 00:00:00 2001 From: Dongxiao Xu Date: Wed, 29 Dec 2010 20:33:37 +0800 Subject: connman: upgrade to version 0.65 upgrade from 0.64 to 0.65 Signed-off-by: Dongxiao Xu --- .../connman/connman-0.65/connman | 62 ++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 meta/recipes-connectivity/connman/connman-0.65/connman (limited to 'meta/recipes-connectivity/connman/connman-0.65/connman') diff --git a/meta/recipes-connectivity/connman/connman-0.65/connman b/meta/recipes-connectivity/connman/connman-0.65/connman new file mode 100644 index 0000000000..f01bf371c2 --- /dev/null +++ b/meta/recipes-connectivity/connman/connman-0.65/connman @@ -0,0 +1,62 @@ +#!/bin/sh + +DAEMON=/usr/sbin/connmand +PIDFILE=/var/run/connmand.pid +DESC="Connection Manager" + +if [ -f /etc/default/connman ] ; then + . /etc/default/connman +fi + +set -e + +nfsroot=0 + +exec 9<&0 < /proc/mounts +while read dev mtpt fstype rest; do + if test $mtpt = "/" ; then + case $fstype in + nfs | nfs4) + nfsroot=1 + break + ;; + *) + ;; + esac + fi +done + +do_start() { + EXTRA_PARAM="" + if test $nfsroot -eq 1 ; then + EXTRA_PARAM="-P ethernet" + fi + $DAEMON $EXTRA_PARAM +} + +do_stop() { + start-stop-daemon --stop --name connmand --quiet +} + +case "$1" in + start) + echo "Starting $DESC" + do_start + ;; + stop) + echo "Stopping $DESC" + do_stop + ;; + restart|force-reload) + echo "Restarting $DESC" + do_stop + sleep 1 + do_start + ;; + *) + echo "Usage: $0 {start|stop|restart|force-reload}" >&2 + exit 1 + ;; +esac + +exit 0 -- cgit v1.2.3-54-g00ecf