diff options
author | Oyvind Repvik <nail@nslu2-linux.org> | 2006-01-18 13:14:46 +0000 |
---|---|---|
committer | OpenEmbedded Project <openembedded-devel@lists.openembedded.org> | 2006-01-18 13:14:46 +0000 |
commit | 800fc84e84333a3872c799bd417aa86701413133 (patch) | |
tree | 985194860863f43180b99215c5357e3670311c84 /packages/lirc/files/lircexec.init | |
parent | 022cad9938488cdc84511658fb112b73b7605c82 (diff) |
packages/lirc: Add NSLU2 support to lirc.
Update lirc to 0.7.2+0.8.0pre4
Add lirc to slugos-packages
Diffstat (limited to 'packages/lirc/files/lircexec.init')
-rwxr-xr-x | packages/lirc/files/lircexec.init | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/packages/lirc/files/lircexec.init b/packages/lirc/files/lircexec.init new file mode 100755 index 0000000000..a9724af0fa --- /dev/null +++ b/packages/lirc/files/lircexec.init @@ -0,0 +1,36 @@ +#! /bin/sh +# +# This is an init script for Familiar +# Copy it to /etc/init.d/lircexecd and type +# > update-rc.d lircexecd defaults 20 +# It must be started after lircd (and it does alphabetically :-) +# irexec reads /etc/lircrc by default + + +test -f /usr/bin/irexec || exit 0 + +case "$1" in + start) + echo -n "Starting lircexec daemon: irexec" + start-stop-daemon --start --quiet --exec /usr/bin/irexec + echo "." + ;; + stop) + echo -n "Stopping lircexec daemon: irexec" + start-stop-daemon --stop --quiet --exec /usr/bin/irexec + echo "." + ;; + restart|force-restart) + echo -n "Stopping lircexec daemon: irexec" + start-stop-daemon --stop --quiet --exec /usr/bin/irexec + sleep 1 + echo -n "Starting lircexec daemon: irexec" + start-stop-daemon --start --quiet --exec /usr/bin/irexec + echo "." + ;; + *) + echo "Usage: /etc/init.d/lircexec {start|stop|reload|restart|force-restart}" + exit 1 +esac + +exit 0 |