summaryrefslogtreecommitdiffstats
path: root/meta/recipes-connectivity/ofono/ofono
diff options
context:
space:
mode:
authorDongxiao Xu <dongxiao.xu@intel.com>2010-11-25 05:52:23 (GMT)
committerRichard Purdie <rpurdie@linux.intel.com>2010-12-02 13:24:52 (GMT)
commita52de6f29b58871c946b1ada34bdc95e3fb4895f (patch)
tree8414fa17eea9316b378ce080a8ec1cb1b2453d52 /meta/recipes-connectivity/ofono/ofono
parent0cd2a26ff6fe573ffcec942f2db4e96db2d391e7 (diff)
downloadpoky-a52de6f29b58871c946b1ada34bdc95e3fb4895f.tar.gz
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/ofono42
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 0000000..6d46fb8
--- /dev/null
+++ b/meta/recipes-connectivity/ofono/ofono/ofono
@@ -0,0 +1,42 @@
1#!/bin/sh
2
3DAEMON=/usr/sbin/ofonod
4PIDFILE=/var/run/ofonod.pid
5DESC="Telephony daemon"
6
7if [ -f /etc/default/ofono] ; then
8 . /etc/default/ofono
9fi
10
11set -e
12
13do_start() {
14 $DAEMON
15}
16
17do_stop() {
18 start-stop-daemon --stop --name ofonod --quiet
19}
20
21case "$1" in
22 start)
23 echo "Starting $DESC"
24 do_start
25 ;;
26 stop)
27 echo "Stopping $DESC"
28 do_stop
29 ;;
30 restart|force-reload)
31 echo "Restarting $DESC"
32 do_stop
33 sleep 1
34 do_start
35 ;;
36 *)
37 echo "Usage: $0 {start|stop|restart|force-reload}" >&2
38 exit 1
39 ;;
40esac
41
42exit 0