summaryrefslogtreecommitdiff
path: root/irbox.init
diff options
context:
space:
mode:
authorchatty1999-01-25 17:48:34 +0000
committerchatty1999-01-25 17:48:34 +0000
commitfb242b482a81baa20d5cb4b8a563880b16aebdee (patch)
tree4e409fb3a59dc7b5f70b1d4b30104f075c89dcb5 /irbox.init
parent4a74019ccbd44626eb96fe751f406ff3fbe30735 (diff)
downloadirbox-fb242b482a81baa20d5cb4b8a563880b16aebdee.zip
irbox-fb242b482a81baa20d5cb4b8a563880b16aebdee.tar.gz
irbox-fb242b482a81baa20d5cb4b8a563880b16aebdee.tar.bz2
irbox-fb242b482a81baa20d5cb4b8a563880b16aebdee.tar.xz
Prepared for version 1.0:
- headers updated - renamed irman.c into irbox.c - added options at launch - added functions to read tables from a directory and its index - created a utility for creating tables - created files for launch at boot time
Diffstat (limited to 'irbox.init')
-rwxr-xr-xirbox.init46
1 files changed, 46 insertions, 0 deletions
diff --git a/irbox.init b/irbox.init
new file mode 100755
index 0000000..04d83f2
--- /dev/null
+++ b/irbox.init
@@ -0,0 +1,46 @@
+#!/bin/sh
+#
+# irbox: Starts the irbox Ivy agent
+#
+# Version: @(#) /etc/rc.d/init.d/irbox.init 1.0
+#
+# chkconfig: - 98 02
+# description: This is a daemon that drives an Irman infra-red device and \
+# emits its events on an Ivy bus
+# processname: irbox
+# config: /etc/irbox.conf
+
+# Source function library.
+. /etc/rc.d/init.d/functions
+
+# See how we were called.
+case "$1" in
+ start)
+ echo -n "Infra-red Ivy driver... "
+ daemon irbox
+ echo
+ touch /var/lock/subsys/irbox
+ ;;
+ stop)
+ echo -n "Shutting down Infra-red Ivy driver: "
+ killproc irbox
+ rm -f /var/lock/subsys/ypbind
+ echo
+ ;;
+ status)
+ status irbox
+ ;;
+ reload)
+ killproc -HUP irbox
+ ;;
+ restart)
+ $0 stop
+ $0 start
+ ;;
+ *)
+ echo "*** Usage: irbox {start|stop|status|restart¦reload}"
+ exit 1
+esac
+
+exit 0
+