summaryrefslogtreecommitdiffstats
path: root/meta/packages/lirc/files/lircmd.init
diff options
context:
space:
mode:
Diffstat (limited to 'meta/packages/lirc/files/lircmd.init')
-rwxr-xr-xmeta/packages/lirc/files/lircmd.init38
1 files changed, 38 insertions, 0 deletions
diff --git a/meta/packages/lirc/files/lircmd.init b/meta/packages/lirc/files/lircmd.init
new file mode 100755
index 0000000000..1a96207dbb
--- /dev/null
+++ b/meta/packages/lirc/files/lircmd.init
@@ -0,0 +1,38 @@
1#! /bin/sh
2#
3# This is an init script for Familiar
4# Copy it to /etc/init.d/lirc and type
5# > update-rc.d lirc defaults 20
6#
7
8
9test -f /usr/sbin/lircmd || exit 0
10
11case "$1" in
12 start)
13 echo -n "Starting lirc daemon: lircmd"
14 start-stop-daemon --start --quiet --exec /usr/sbin/lircmd
15 echo "."
16 ;;
17 stop)
18 echo -n "Stopping lirc daemon: lircmd"
19 start-stop-daemon --stop --quiet --exec /usr/sbin/lircmd
20 echo "."
21 ;;
22 reload|force-reload)
23 start-stop-daemon --stop --quiet --signal 1 --exec /usr/sbin/lircmd
24 ;;
25 restart)
26 echo -n "Stopping lirc daemon: lircmd"
27 start-stop-daemon --stop --quiet --exec /usr/sbin/lircmd
28 sleep 1
29 echo -n "Starting lirc daemon: lircmd"
30 start-stop-daemon --start --quiet --exec /usr/sbin/lircmd
31 echo "."
32 ;;
33 *)
34 echo "Usage: /etc/init.d/lircmd {start|stop|reload|restart|force-reload}"
35 exit 1
36esac
37
38exit 0