[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Problem with udev rules under etch



Hi Andy.

Andy Hawkins, 23.04.2007 13:50:
> In article <[🔎] 462C8D8D.3090406@noctus.net>,
>            Mathias Brodala<info@noctus.net> wrote:
>> How do you expect your rule to match these properties?
>>
>> You say:
>>
>>> SUBSYSTEMS=3D=3D"scsi"
>> But it is 'SUBSYSTEM=3D=3D"block"' instead.
> 
> The bit that contains the 'ZIP 100' is the 'scsi' subsystem, not the 'block'
> subsystem.

Oh, yes, my fault.

>> You say:
>>
>>> ATTR{model}=3D=3D"ZIP 100"
>> But it is 'ATTRS{model}=3D=3D"ZIP 100         "' instead.
> 
> The udev manual says that trailing whitespace is ignored.

Not fully:

>        ATTRS{filename}
>            […] Trailing whitespace in the attribute values is
>            ignored, if the specified match value does not contain trailing whitespace
>            itself.

So since ATTRS{model} itself contains whitespace you must specify them in your
rule, too.

>> And besides: you cannot mix properties of two different device sections. =
>> Have a
>> look at how to write udev rules[0] properly.
> 
> I don't think I am mixing sections. The 'ZIP 100' string is in the 'scsi'
> section.

I stand corrected now.


Regards, Mathias

-- 
debian/rules

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: