Re: stupid whitespaces in vendor or model name

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

 



On Thu, Oct 30, 2008 at 00:08, mike <spam@xxxxxxxxxxxxxxxxxxx> wrote:
> i used udev 122 on clfs multilib and all works good. but now, i created this
> rule for my external HD:
>
> BUS=="usb", KERNEL=="sd??", ATTRS{vendor}=="TOSHIBA ",
> SYMLINK="usbplatte%n", RUN=="/root/BASH/usbplatte", OPTIONS=="last_rule"
>
> without the {vendor}or {model} the rule is running. with it, the rule runs
> NOT!
>
> the infos are from: /udevinfo -a -p /block/sdb | grep {vendor}/ gives:
> /ATTRS{vendor}=="TOSHIBA "/
> its also with the {model}, here we have: /ATTRS{model}=="MK2546GSX       "/
> note the spaces on the end of the string!
> its the same in udev 130
>
> what can i do? any hints? a typo?

Do not add any trailing whitespace in the key, if you do not want to
match for it. Udev will ignore all the trailing whitespace, if the
match string does not end in whitespace.

Also use SYMLINK+= and RUN+=, or you delete all values set in earlier rules.

Kay
--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel]     [Linux DVB]     [Asterisk Internet PBX]     [DCCP]     [Netdev]     [X.org]     [Util Linux NG]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux