diff options
author | Joshua Lock <josh@linux.intel.com> | 2009-12-03 16:17:07 +0000 |
---|---|---|
committer | Joshua Lock <josh@linux.intel.com> | 2009-12-18 11:47:44 +0000 |
commit | 8904028db14d906dad472044baa502a666c99f3d (patch) | |
tree | a2d81fe88011b175a1d02c0d2d1569531f6450cb /meta/packages/ofono/files | |
parent | 69027cda38e2a719d714ae614d84441cfb3bbebf (diff) | |
download | openembedded-core-8904028db14d906dad472044baa502a666c99f3d.tar.gz openembedded-core-8904028db14d906dad472044baa502a666c99f3d.tar.bz2 openembedded-core-8904028db14d906dad472044baa502a666c99f3d.tar.xz openembedded-core-8904028db14d906dad472044baa502a666c99f3d.zip |
ofono: Initial recipe for ofono
Based on the connman recipe, add ofono.inc for generic recipe components
and use it from ofono_git.bb and tracking a fixed git revision and
ofono_0.12.bb packaging the latest release.
Signed-off-by: Joshua Lock <josh@linux.intel.com>
Diffstat (limited to 'meta/packages/ofono/files')
-rw-r--r-- | meta/packages/ofono/files/ofono | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/meta/packages/ofono/files/ofono b/meta/packages/ofono/files/ofono new file mode 100644 index 000000000..6d46fb896 --- /dev/null +++ b/meta/packages/ofono/files/ofono @@ -0,0 +1,42 @@ +#!/bin/sh + +DAEMON=/usr/sbin/ofonod +PIDFILE=/var/run/ofonod.pid +DESC="Telephony daemon" + +if [ -f /etc/default/ofono] ; then + . /etc/default/ofono +fi + +set -e + +do_start() { + $DAEMON +} + +do_stop() { + start-stop-daemon --stop --name ofonod --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 |