summaryrefslogtreecommitdiffstats
path: root/meta-eca/recipes-connectivity/ofono/files/ofono
diff options
context:
space:
mode:
authorAdrian Dudau <adrian.dudau@enea.com>2014-06-26 13:29:32 +0200
committerAdrian Dudau <adrian.dudau@enea.com>2014-06-26 13:29:32 +0200
commit6b4c82f4657bdb56e6b7a56651d6d4bb91a35b8f (patch)
tree814ad3da280833de03535ca04cf5068da1d31822 /meta-eca/recipes-connectivity/ofono/files/ofono
downloadmeta-eca-6b4c82f4657bdb56e6b7a56651d6d4bb91a35b8f.tar.gz
initial commit for Enea Linux 4.0daisy-enea
Migrated from the internal git server on the daisy-enea branch Signed-off-by: Adrian Dudau <adrian.dudau@enea.com>
Diffstat (limited to 'meta-eca/recipes-connectivity/ofono/files/ofono')
-rw-r--r--meta-eca/recipes-connectivity/ofono/files/ofono42
1 files changed, 42 insertions, 0 deletions
diff --git a/meta-eca/recipes-connectivity/ofono/files/ofono b/meta-eca/recipes-connectivity/ofono/files/ofono
new file mode 100644
index 0000000..cc99709
--- /dev/null
+++ b/meta-eca/recipes-connectivity/ofono/files/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