← Back to team overview

mythbuntu-bugs team mailing list archive

[Bug 477988] Re: /etc/init.d/lirc doesn't properly set TRANSMITTER_SOCKET variable

 

*** This bug is a duplicate of bug 475664 ***
    https://bugs.launchpad.net/bugs/475664

I believe this was fixed, per Bug 475664.

** Changed in: mythbuntu
       Status: Triaged => Fix Released

** This bug has been marked a duplicate of bug 475664
   /etc/init.d/lirc broken when both REMOTE and TRANSMITTER are defined

-- 
/etc/init.d/lirc doesn't properly set TRANSMITTER_SOCKET variable
https://bugs.launchpad.net/bugs/477988
You received this bug notification because you are a member of Mythbuntu
Bug Team, which is subscribed to Mythbuntu.

Status in Mythbuntu, Ubuntu derivative focused upon MythTV: Fix Released

Bug description:
I have a mythbuntu 9.10 system with a PVR-250 and a serial irblaster.

I noticed that /dev/lircd and /dev/lircd1 symlinks are pointing to the same file

lrwxrwxrwx 1 root root    19 2009-11-07 20:10 /dev/lircd -> /var/run/lirc/lircd
lrwxrwxrwx 1 root root    19 2009-11-07 20:10 /dev/lircd1 -> /var/run/lirc/lircd

The second should be pointing to /var/run/lirc/lircd1.

srw-rw-rw- 1 root root 0 2009-11-07 20:10 /var/run/lirc/lircd
srw-rw-rw- 1 root root 0 2009-11-07 20:10 /var/run/lirc/lircd1

The problem is in /etc/init.d/lirc.  The build_transmitter_args() function correctly sets TRANSMITTER_SOCKET, but because it is called via `build_transmitter_args` (i.e. in backquotes) the setting of the global variable isn't being preserved after the function returns.  So when it is later used to create the symlink, the old default value is used.