stupid whitespaces in vendor or model name
hi,
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?
Quoted 9 lines · mike
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!
Quoted 7 lines
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 130what 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