summaryrefslogtreecommitdiffstats
path: root/meta/recipes-connectivity
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 12:08:40 +0100
commit1155b59ddc9c705039fed16bf70fcc182e551a9c (patch)
treec0eda603e51035cc7d979fc1df088d823f176f13 /meta/recipes-connectivity
parentab9694411840a9a78e9b6bbd24ef497be9f042b9 (diff)
downloadopenembedded-core-1155b59ddc9c705039fed16bf70fcc182e551a9c.tar.gz
openembedded-core-1155b59ddc9c705039fed16bf70fcc182e551a9c.tar.bz2
openembedded-core-1155b59ddc9c705039fed16bf70fcc182e551a9c.zip
irda-utils: add init.d/irattach status command for LSB compliance
Signed-off-by: Roy.Li <rongqing.li@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-connectivity')
-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 @@
# 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