summaryrefslogtreecommitdiff
path: root/meta/packages/connman/files
diff options
context:
space:
mode:
authorSamuel Ortiz <sameo@openedhand.com>2008-09-22 19:02:30 +0000
committerSamuel Ortiz <sameo@openedhand.com>2008-09-22 19:02:30 +0000
commit7178ed1a629aad0288920a87474a35988d906b1c (patch)
tree58866cd31cb53d92d02a879cb32d8e515a6e004c /meta/packages/connman/files
parent08012fd9637363a3d18b813b94f760ce602b621f (diff)
downloadopenembedded-core-7178ed1a629aad0288920a87474a35988d906b1c.tar.gz
openembedded-core-7178ed1a629aad0288920a87474a35988d906b1c.tar.bz2
openembedded-core-7178ed1a629aad0288920a87474a35988d906b1c.tar.xz
openembedded-core-7178ed1a629aad0288920a87474a35988d906b1c.zip
connman: Initial poky commit
We're adding both connman the daemon and connman-gnome which is a gnome applet. git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5225 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages/connman/files')
-rwxr-xr-xmeta/packages/connman/files/connman42
1 files changed, 42 insertions, 0 deletions
diff --git a/meta/packages/connman/files/connman b/meta/packages/connman/files/connman
new file mode 100755
index 000000000..5e0f90e8c
--- /dev/null
+++ b/meta/packages/connman/files/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() {
+ connmand
+}
+
+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