summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/recipes-connectivity/bluez5/bluez5/init12
1 files changed, 4 insertions, 8 deletions
diff --git a/meta/recipes-connectivity/bluez5/bluez5/init b/meta/recipes-connectivity/bluez5/bluez5/init
index d7972f2d95..ca9fa18549 100644
--- a/meta/recipes-connectivity/bluez5/bluez5/init
+++ b/meta/recipes-connectivity/bluez5/bluez5/init
@@ -1,5 +1,8 @@
1#!/bin/sh 1#!/bin/sh
2 2
3# Source function library
4. /etc/init.d/functions
5
3PATH=/sbin:/bin:/usr/sbin:/usr/bin 6PATH=/sbin:/bin:/usr/sbin:/usr/bin
4DESC=bluetooth 7DESC=bluetooth
5 8
@@ -44,14 +47,7 @@ case $1 in
44 $0 start 47 $0 start
45 ;; 48 ;;
46 status) 49 status)
47 pidof ${DAEMON} >/dev/null 50 status ${DAEMON} || exit $?
48 status=$?
49 if [ $status -eq 0 ]; then
50 echo "bluetooth is running."
51 else
52 echo "bluetooth is not running"
53 fi
54 exit $status
55 ;; 51 ;;
56 *) 52 *)
57 N=/etc/init.d/bluetooth 53 N=/etc/init.d/bluetooth