diff options
author | Dongxiao Xu <dongxiao.xu@intel.com> | 2010-11-25 13:52:23 +0800 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-12-02 05:24:52 -0800 |
commit | a52de6f29b58871c946b1ada34bdc95e3fb4895f (patch) | |
tree | 8414fa17eea9316b378ce080a8ec1cb1b2453d52 /meta/recipes-connectivity/ofono/ofono | |
parent | 0cd2a26ff6fe573ffcec942f2db4e96db2d391e7 (diff) | |
download | openembedded-core-a52de6f29b58871c946b1ada34bdc95e3fb4895f.tar.gz openembedded-core-a52de6f29b58871c946b1ada34bdc95e3fb4895f.tar.bz2 openembedded-core-a52de6f29b58871c946b1ada34bdc95e3fb4895f.tar.xz openembedded-core-a52de6f29b58871c946b1ada34bdc95e3fb4895f.zip |
ofono: Upgrade to version 0.33
Fixed recipe metadata.
Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
Diffstat (limited to 'meta/recipes-connectivity/ofono/ofono')
-rw-r--r-- | meta/recipes-connectivity/ofono/ofono/ofono | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/ofono/ofono/ofono b/meta/recipes-connectivity/ofono/ofono/ofono new file mode 100644 index 000000000..6d46fb896 --- /dev/null +++ b/meta/recipes-connectivity/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 |