From 96c8f0b2165b476feac7d8598002dd27759207fd Mon Sep 17 00:00:00 2001 From: Daniel Mack Date: Tue, 6 Dec 2011 00:27:01 +0100 Subject: Add package connman The ConnMan project provides a daemon for managing internet connections within embedded devices running the Linux operating system. The Connection Manager is designed to be slim and to use as few resources as possible, so it can be easily integrated. It is a fully modular system that can be extended, through plug-ins, to support all kinds of wired or wireless technologies. Also, configuration methods, like DHCP and domain name resolving, are implemented using plug-ins. The plug-in approach allows for easy adaption and modification for various use cases. The location for released tarballs is still unavailable due to the recent kernel.org outage, hence the package obtains the sources from git for now. [Peter: Ensure it can only be selected with workable toolchains, use start-stop-daemon in initscript, and install cm if selected] Signed-off-by: Daniel Mack Signed-off-by: Peter Korsgaard --- package/connman/S45connman | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 package/connman/S45connman (limited to 'package/connman/S45connman') diff --git a/package/connman/S45connman b/package/connman/S45connman new file mode 100755 index 000000000..a8afd6871 --- /dev/null +++ b/package/connman/S45connman @@ -0,0 +1,22 @@ +#!/bin/sh + +case "$1" in + start) + echo -n "Starting connman ... " + start-stop-daemon -S -q -m -b -p /var/run/connmand.pid --exec /usr/sbin/connmand -- -n + echo "done." + ;; + stop) + echo -n "Stopping connman ..." + start-stop-daemon -K -q -p /var/run/connmand.pid + echo "done." + ;; + restart) + $0 stop + sleep 1 + $0 start + ;; + *) + echo "usage: $0 {start|stop|restart}" + ;; +esac -- cgit v1.2.3