Attila wrote:
> At first: From my view the way to use "=" and/or "==" is very inconsequential.
> 
> After a try&error game i found out that my old rule for usb sticks
> 
> BUS="usb", KERNEL="sd*", SYSFS{product}="USB Mass Storage Device", NAME="%k",
> SYMLINK="usbhd%n", GROUP="storage
> 
> works now with
> 
> BUS=="usb", KERNEL=="sd*", SYSFS{product}=="USB Mass Storage Device",
> NAME="%k", SYMLINK="usbhd%n", GROUP="storage

It is very easy: == is a comparison, = is an assignment. They have different 
meanings.

BUS=="usb" checks whether BUS is usb
NAME="%k" sets the name to %k.
SYMLINK+="usbhd%n" adds a symlink (there may be multiple symlinks)

btw: you don't have to set NAME and GROUP, because that is already done in the 
main rule file.

So your rule would be:
BUS=="usb", KERNEL=="sd*", SYSFS{product}=="USB Mass Storage Device", 
SYMLINK+="usbhd%n"

_______________________________________________
arch mailing list
[email protected]
http://www.archlinux.org/mailman/listinfo/arch

Reply via email to