nasty bash bug in init.d/lirc script (0.8.5-0ubuntu2)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lirc (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: lirc
I've compiled files from https:/
On dpkg -i lirc_0.
/etc/init.d/lirc: 155: Syntax error: word unexpected (expected ")")
This solved the problem:
$ diff -Nur ./debian/
--- ./debian/
+++ ./debian/
@@ -151,14 +151,12 @@
fi
- ;;
if [ "$START_IREXEC" = "true" ]; then
fi
fi
- ;;
stop)
if [ "$START_IREXEC" = "true" ]; then
Maybe useful:
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 9.04
Release: 9.04
Codename: jaunty
$ uname -a
Linux tux64 2.6.28-13-generic #44-Ubuntu SMP Tue Jun 2 07:55:09 UTC 2009 x86_64 GNU/Linux
Regards,
Olaf
sorry, should be:
$ diff -Nur ./debian/ lirc/etc/ init.d/ lirc~ ./debian/ lirc/etc/ init.d/ lirc lirc/etc/ init.d/ lirc~ 2009-06-24 18:25:17.287210000 +0200 lirc/etc/ init.d/ lirc 2009-06-24 20:01:10.590664922 +0200
start- stop-daemon --start --quiet --exec /usr/sbin/lircmd < /dev/null
log_ end_msg $?
log_ daemon_ msg "Starting execution daemon: irexec"
start- stop-daemon --start --quiet --exec /usr/bin/irexec -- -d /etc/lirc/lircrc < /dev/null
log_ end_msg $?
--- ./debian/
+++ ./debian/
@@ -151,13 +151,11 @@
fi
- ;;
if [ "$START_IREXEC" = "true" ]; then
fi
- fi
;;
stop)
if [ "$START_IREXEC" = "true" ]; then