summaryrefslogtreecommitdiff
path: root/src/irbox.init
diff options
context:
space:
mode:
authorchatty2000-07-13 15:54:23 +0000
committerchatty2000-07-13 15:54:23 +0000
commit48ee0a22ae11a0ebc00a86e1b26955f4880dec15 (patch)
tree417a03d700e5c52316e890212d5e17011f2b24e8 /src/irbox.init
parentd03da3408dfa60d1b30497d650a959019ccb1ae4 (diff)
downloadirbox-master.zip
irbox-master.tar.gz
irbox-master.tar.bz2
irbox-master.tar.xz
irbox.init and irbox.conf have been moved from src to redhatHEADmaster
man pages are now installed
Diffstat (limited to 'src/irbox.init')
-rwxr-xr-xsrc/irbox.init68
1 files changed, 0 insertions, 68 deletions
diff --git a/src/irbox.init b/src/irbox.init
deleted file mode 100755
index 1fa91c4..0000000
--- a/src/irbox.init
+++ /dev/null
@@ -1,68 +0,0 @@
-#!/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
-
-. /etc/irbox.conf
-
-if [ -z $BUS ]; then
- busopt=
-else
- busopt="-b $BUS"
-fi
-
-if [ -z $DEVICE ]; then
- devopt=
-else
- devopt="-d $DEVICE"
-fi
-
-if [ -z $APPNAME ]; then
- appopt=
-else
- appopt="-n $APPNAME"
-fi
-
-
-
-# See how we were called.
-case "$1" in
- start)
- echo -n "Infra-red Ivy driver... "
- daemon irbox $busopt $devopt $appopt &
- echo
- touch /var/lock/subsys/irbox
- ;;
- stop)
- echo -n "Shutting down Infra-red Ivy driver: "
- killproc irbox
- rm -f /var/lock/subsys/irbox
- 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
-