summaryrefslogtreecommitdiff
path: root/packages/lirc/files
diff options
context:
space:
mode:
authornslu2-linux.adm@bkbits.net <nslu2-linux.adm@bkbits.net>2005-06-18 19:40:10 +0000
committernslu2-linux.adm@bkbits.net <nslu2-linux.adm@bkbits.net>2005-06-18 19:40:10 +0000
commite7edf4f859009bb51a6f30b3364ba1392781ca1c (patch)
tree724e172d019fb589a847b012af67eb448df9cf6c /packages/lirc/files
parent0fe3c7652480d9e3190f8cae327467782a0ac55d (diff)
Merge bk://oe-devel.bkbits.net/openembedded
into bkbits.net:/repos/n/nslu2-linux/openembedded 2005/06/18 20:25:14+01:00 reciva.com!pb remove some old, broken xservers 2005/06/18 20:18:41+01:00 reciva.com!pb check for lircd in ${sbindir} 2005/06/18 19:54:54+01:00 reciva.com!pb update linux-epia to 2.6.12; disable in-kernel drm BKrev: 42b4789aqSGQUoxkKdKTSUl7RQyMug
Diffstat (limited to 'packages/lirc/files')
-rw-r--r--packages/lirc/files/lircd.init38
1 files changed, 38 insertions, 0 deletions
diff --git a/packages/lirc/files/lircd.init b/packages/lirc/files/lircd.init
index e69de29bb2..e549b7ede9 100644
--- a/packages/lirc/files/lircd.init
+++ b/packages/lirc/files/lircd.init
@@ -0,0 +1,38 @@
+#! /bin/sh
+#
+# This is an init script for Familiar
+# Copy it to /etc/init.d/lirc and type
+# > update-rc.d lirc defaults 20
+#
+
+
+test -f /usr/sbin/lircd || exit 0
+
+case "$1" in
+ start)
+ echo -n "Starting lirc daemon: lircd"
+ start-stop-daemon --start --quiet --exec /usr/bin/lircd -- --device=/dev/lirc
+ echo "."
+ ;;
+ stop)
+ echo -n "Stopping lirc daemon: lircd"
+ start-stop-daemon --stop --quiet --exec /usr/bin/lircd
+ echo "."
+ ;;
+ reload|force-reload)
+ start-stop-daemon --stop --quiet --signal 1 --exec /usr/bin/lircd
+ ;;
+ restart)
+ echo -n "Stopping lirc daemon: lircd"
+ start-stop-daemon --stop --quiet --exec /usr/bin/lircd
+ sleep 1
+ echo -n "Starting lirc daemon: lircd"
+ start-stop-daemon --start --quiet --exec /usr/bin/lircd -- --device=/dev/lirc
+ echo "."
+ ;;
+ *)
+ echo "Usage: /etc/init.d/lircd {start|stop|reload|restart|force-reload}"
+ exit 1
+esac
+
+exit 0