if pcmcia exists, unautodetectable monitor, bunch of ACPI stuff, etc etc and then give them weigths? 3/4 "laptop signs" => probably a laptop? but there has to be some way to override it... tir, 26.10.2004 kl. 20.26 skrev Dave Jones: > On Tue, Oct 26, 2004 at 01:45:45PM -0400, Jeremy Katz wrote: > > On Tue, 2004-10-26 at 19:30 +0200, Ralf Ertzinger wrote: > > > Jeremy Katz <katzj@xxxxxxxxxx> wrote: > > > > This is a never-ending battle. The proper place for such a > > > > determination is with the service itself. > > > > > > Hmmm. On the other hand I do not like the idea to stuff the > > > whole machine-type-detection logic into each and every package. > > > > Which is why you have a library (be it kudzu, hal, or whatever your > > hardware abstraction layer library of the week happens to be) and ensure > > that *it* can do the probing for you. Then you just have to have the > > package know what it cares about and see if there's any available. > > In the case of x86 laptops, a simple 'is_laptop' script could be > hacked up pretty easily with dmidecode and grep. > > Dave