Patchwork [2/2] irda-utils: add init.d/irattach status command for LSB compliance

login
register
mail settings
Submitter rongqing.li@windriver.com
Date Sept. 3, 2013, 5:19 a.m.
Message ID <dab1b5bca3fb63e0731aa7520d22d6504bc8e0b0.1378185423.git.rongqing.li@windriver.com>
Download mbox | patch
Permalink /patch/57257/
State Accepted
Commit 1155b59ddc9c705039fed16bf70fcc182e551a9c
Headers show

Comments

rongqing.li@windriver.com - Sept. 3, 2013, 5:19 a.m.
From: "Roy.Li" <rongqing.li@windriver.com>

Signed-off-by: Roy.Li <rongqing.li@windriver.com>
---
 meta/recipes-connectivity/irda-utils/irda-utils-0.9.18/init |    9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

Patch

diff --git a/meta/recipes-connectivity/irda-utils/irda-utils-0.9.18/init b/meta/recipes-connectivity/irda-utils/irda-utils-0.9.18/init
index 14efb94..b8038e0 100755
--- a/meta/recipes-connectivity/irda-utils/irda-utils-0.9.18/init
+++ b/meta/recipes-connectivity/irda-utils/irda-utils-0.9.18/init
@@ -8,6 +8,9 @@ 
 # Short-Description: Infrared port support
 ### END INIT INFO
 
+# Source function library.
+. /etc/init.d/functions
+
 module_id() {
         awk 'BEGIN { FS=": " } /Hardware/ { print $2 } ' </proc/cpuinfo
 }
@@ -62,9 +65,13 @@  case "$1" in
 		killall irattach > /dev/null 2>&1
         echo "$NAME."
         ;;
+  status)
+	status irattach
+	exit $?
+	;;
   *)
         N=/etc/init.d/$NAME
-        echo "Usage: $N {start|stop|restart|force-reload}" >&2
+        echo "Usage: $N {start|stop|restart|force-reload|status}" >&2
         exit 1
         ;;
 esac