diff options
author | Stefan Schmidt <stefan@buglabs.net> | 2011-02-03 10:49:58 +0100 |
---|---|---|
committer | Stefan Schmidt <stefan@buglabs.net> | 2011-02-03 10:49:58 +0100 |
commit | 0a509aeb50214b93eff979f6080bced5efe5ca04 (patch) | |
tree | 9c9596db6c2806d3f13cd60b6c465fcd6c47efde /recipes/ofono/ofono | |
parent | f5a345b1cf355790202799f0e187f1ac45184ee5 (diff) | |
download | openembedded-0a509aeb50214b93eff979f6080bced5efe5ca04.tar.gz |
ofono: Add recipes from poky.
Also add the newest, 0.40, release.
Diffstat (limited to 'recipes/ofono/ofono')
-rw-r--r-- | recipes/ofono/ofono/ofono | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/recipes/ofono/ofono/ofono b/recipes/ofono/ofono/ofono new file mode 100644 index 0000000000..6d46fb8966 --- /dev/null +++ b/recipes/ofono/ofono/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 |