diff options
author | Dongxiao Xu <dongxiao.xu@intel.com> | 2010-08-26 13:37:52 +0800 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-08-27 15:46:55 +0100 |
commit | ca4a58a4eb66e6e08f358de7f8869a35389ee605 (patch) | |
tree | 915bdde88c353517b1763907ca41c02745635bc2 /meta/recipes-connectivity/connman/connman-0.56/connman | |
parent | f6917ad47b0425f9ccb3965aa9220ed3ba0e49ec (diff) | |
download | openembedded-core-ca4a58a4eb66e6e08f358de7f8869a35389ee605.tar.gz openembedded-core-ca4a58a4eb66e6e08f358de7f8869a35389ee605.tar.bz2 openembedded-core-ca4a58a4eb66e6e08f358de7f8869a35389ee605.tar.xz openembedded-core-ca4a58a4eb66e6e08f358de7f8869a35389ee605.zip |
connman: Use connman as default network management tool
Upgrade connman to version 0.56
Modify connman-gnome to match the recent version of connman
Deprecate networkmanager
Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
Diffstat (limited to 'meta/recipes-connectivity/connman/connman-0.56/connman')
-rwxr-xr-x | meta/recipes-connectivity/connman/connman-0.56/connman | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/connman/connman-0.56/connman b/meta/recipes-connectivity/connman/connman-0.56/connman new file mode 100755 index 000000000..f8154f68f --- /dev/null +++ b/meta/recipes-connectivity/connman/connman-0.56/connman @@ -0,0 +1,42 @@ +#!/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 + +do_start() { + $DAEMON +} + +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 |