mirror of
https://git.yoctoproject.org/poky
synced 2026-06-02 13:29:49 +00:00
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>
This commit is contained in:
@@ -8,6 +8,9 @@
|
|||||||
# Short-Description: Infrared port support
|
# Short-Description: Infrared port support
|
||||||
### END INIT INFO
|
### END INIT INFO
|
||||||
|
|
||||||
|
# Source function library.
|
||||||
|
. /etc/init.d/functions
|
||||||
|
|
||||||
module_id() {
|
module_id() {
|
||||||
awk 'BEGIN { FS=": " } /Hardware/ { print $2 } ' </proc/cpuinfo
|
awk 'BEGIN { FS=": " } /Hardware/ { print $2 } ' </proc/cpuinfo
|
||||||
}
|
}
|
||||||
@@ -62,9 +65,13 @@ case "$1" in
|
|||||||
killall irattach > /dev/null 2>&1
|
killall irattach > /dev/null 2>&1
|
||||||
echo "$NAME."
|
echo "$NAME."
|
||||||
;;
|
;;
|
||||||
|
status)
|
||||||
|
status irattach
|
||||||
|
exit $?
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
N=/etc/init.d/$NAME
|
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
|
exit 1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|||||||
Reference in New Issue
Block a user