← Back to team overview

mythbuntu-bugs team mailing list archive

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

 

Thank you for helping to improve Mythbuntu by opening this ticket.   I
am marking this ticket as confirmed because it appears to have enough
information to help the developers understand the problem.  It is
possible I am wrong and another more experienced triager or developer
may adjust the status of the ticket to "incomplete" and request
additional information.

** Changed in: mythbuntu
   Importance: Undecided => Medium

** Changed in: mythbuntu
       Status: New => Confirmed

** Changed in: mythbuntu
       Status: Confirmed => Triaged

-- 
/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: Triaged

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.