summaryrefslogtreecommitdiffstats
path: root/meta/recipes-connectivity/irda-utils/irda-utils-0.9.18/init
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-connectivity/irda-utils/irda-utils-0.9.18/init')
-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