summaryrefslogtreecommitdiff
path: root/openembedded/packages/lirc/files/lircexec.init
diff options
context:
space:
mode:
Diffstat (limited to 'openembedded/packages/lirc/files/lircexec.init')
-rwxr-xr-xopenembedded/packages/lirc/files/lircexec.init5
1 files changed, 3 insertions, 2 deletions
diff --git a/openembedded/packages/lirc/files/lircexec.init b/openembedded/packages/lirc/files/lircexec.init
index a9724af0fa..3a8c1a306e 100755
--- a/openembedded/packages/lirc/files/lircexec.init
+++ b/openembedded/packages/lirc/files/lircexec.init
@@ -8,11 +8,12 @@
test -f /usr/bin/irexec || exit 0
+test -f /etc/lircrc || exit 0
case "$1" in
start)
echo -n "Starting lircexec daemon: irexec"
- start-stop-daemon --start --quiet --exec /usr/bin/irexec
+ start-stop-daemon --start --quiet --exec /usr/bin/irexec -- --daemon
echo "."
;;
stop)
@@ -25,7 +26,7 @@ case "$1" in
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
+ start-stop-daemon --start --quiet --exec /usr/bin/irexec -- --daemon
echo "."
;;
*)