summaryrefslogtreecommitdiffstats
path: root/meta/recipes-connectivity/irda-utils/irda-utils-0.9.18
diff options
context:
space:
mode:
authorRoy.Li <rongqing.li@windriver.com>2013-09-03 13:19:24 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-09-06 23:03:20 +0100
commit71d7751ade65621d0617ee418df46bf3be0b9df6 (patch)
treec68e801353a0645427d0471545dbb5b792dd9abe /meta/recipes-connectivity/irda-utils/irda-utils-0.9.18
parente0d66651c591ca50e1f716eefaec163d60e10b0e (diff)
downloadpoky-71d7751ade65621d0617ee418df46bf3be0b9df6.tar.gz
irda-utils: add init.d/irattach status command for LSB compliance
(From OE-Core rev: 1155b59ddc9c705039fed16bf70fcc182e551a9c) Signed-off-by: Roy.Li <rongqing.li@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-connectivity/irda-utils/irda-utils-0.9.18')
-rwxr-xr-xmeta/recipes-connectivity/irda-utils/irda-utils-0.9.18/init9
1 files changed, 8 insertions, 1 deletions
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 14efb94459..b8038e08a3 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 @@
8# Short-Description: Infrared port support 8# Short-Description: Infrared port support
9### END INIT INFO 9### END INIT INFO
10 10
11# Source function library.
12. /etc/init.d/functions
13
11module_id() { 14module_id() {
12 awk 'BEGIN { FS=": " } /Hardware/ { print $2 } ' </proc/cpuinfo 15 awk 'BEGIN { FS=": " } /Hardware/ { print $2 } ' </proc/cpuinfo
13} 16}
@@ -62,9 +65,13 @@ case "$1" in
62 killall irattach > /dev/null 2>&1 65 killall irattach > /dev/null 2>&1
63 echo "$NAME." 66 echo "$NAME."
64 ;; 67 ;;
68 status)
69 status irattach
70 exit $?
71 ;;
65 *) 72 *)
66 N=/etc/init.d/$NAME 73 N=/etc/init.d/$NAME
67 echo "Usage: $N {start|stop|restart|force-reload}" >&2 74 echo "Usage: $N {start|stop|restart|force-reload|status}" >&2
68 exit 1 75 exit 1
69 ;; 76 ;;
70esac 77esac