On Mon, 2012-10-08 at 16:28 +0200, Michele Cane wrote: > Hi, > > On Mon, Oct 8, 2012 at 4:06 PM, Ian Campbell <i...@hellion.org.uk> wrote: > > On Mon, 2012-10-08 at 15:55 +0200, Michele Cane wrote: > >> Hi Ian, > >> > >> the output is: "QNAP TS-41x" > >> > >> Now the problem is that is the same output for models without LCD. > > > > Yes :-( > > > >> We need to find another way to discriminate models. > > > > I'm afraid I don't have an 41x devices at all, just 21x. > > > > I suppose the LCD ends up creating something under sysfs? It might be > > preferable to have the 41x config file detect this and enable LCD > > support dynamically, rather than having a whole new config file. > > Assuming the hardware is otherwise similar of course. > > > > Not sure if this can help but in the example -.lua for ts-410p the LCD > a125 is registered as /dev/ttyS0 > Can this be useful to detect the LCD?
I don't think so, even my 219 device has both ttyS0 and 1. They are just serial ports so you need to know what board you are on before you can make assumptions about what is on the other end. > Other option: > > The .lua files for 41x and 419p are the same excepted the part for the LCD. > What if for all 41x the postinst install the .lua with the LCD option? My concern would be with the impact this has on the non-LCD devices, since I don't know what is on ttyS0 on those devices (might be the serial console for example). I could install the LCD stuff but disabled by default, then at least you would only need to edit one line (or character even) to enable the LCD. Not ideal but its an improvement over the situation now I think. I've CC'd Bernhard and Martin since they appear to have implemented 419p and 41x respectively support upstream so perhaps they have some insight on how to distinguish the two. Ian. -- Ian Campbell Current Noise: Opeth - Under The Weeping Moon I owe the public nothing. -- J. P. Morgan -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org