summaryrefslogtreecommitdiffstats
path: root/meta/packages/lirc/files/lircd.init
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2006-07-21 10:10:31 +0000
committerRichard Purdie <richard@openedhand.com>2006-07-21 10:10:31 +0000
commitb2f192faabe412adce79534e22efe9fb69ee40e2 (patch)
tree7076c49d4286f8a1733650bd8fbc7161af200d57 /meta/packages/lirc/files/lircd.init
parent2cf0eadf9f730027833af802d7e6c90b44248f80 (diff)
downloadpoky-b2f192faabe412adce79534e22efe9fb69ee40e2.tar.gz
Rename /openembedded/ -> /meta/
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@530 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages/lirc/files/lircd.init')
-rwxr-xr-xmeta/packages/lirc/files/lircd.init39
1 files changed, 39 insertions, 0 deletions
diff --git a/meta/packages/lirc/files/lircd.init b/meta/packages/lirc/files/lircd.init
new file mode 100755
index 0000000000..11ce62447f
--- /dev/null
+++ b/meta/packages/lirc/files/lircd.init
@@ -0,0 +1,39 @@
1#! /bin/sh
2#
3# This is an init script for Familiar
4# Copy it to /etc/init.d/lircd and type
5# > update-rc.d lircd defaults 20
6#
7
8
9test -f /usr/sbin/lircd || exit 0
10test -f /etc/lircd.conf || exit 0
11
12case "$1" in
13 start)
14 echo -n "Starting lirc daemon: lircd"
15 start-stop-daemon --start --quiet --exec /usr/sbin/lircd -- --device=/dev/lirc
16 echo "."
17 ;;
18 stop)
19 echo -n "Stopping lirc daemon: lircd"
20 start-stop-daemon --stop --quiet --exec /usr/sbin/lircd
21 echo "."
22 ;;
23 reload|force-reload)
24 start-stop-daemon --stop --quiet --signal 1 --exec /usr/sbin/lircd
25 ;;
26 restart)
27 echo -n "Stopping lirc daemon: lircd"
28 start-stop-daemon --stop --quiet --exec /usr/sbin/lircd
29 sleep 1
30 echo -n "Starting lirc daemon: lircd"
31 start-stop-daemon --start --quiet --exec /usr/sbin/lircd -- --device=/dev/lirc
32 echo "."
33 ;;
34 *)
35 echo "Usage: /etc/init.d/lircd {start|stop|reload|restart|force-reload}"
36 exit 1
37esac
38
39exit 0