[systemd-devel] Trying to come up with udev rule for USB geographic naming

Andrei Borzenkov arvidjaar at gmail.com
Wed Jul 12 03:25:08 UTC 2017


12.07.2017 02:53, Paul D. DeRocco пишет:
>> From: Andrei Borzenkov [mailto:arvidjaar at gmail.com] 
>>
>>> KERNEL=="midiC*", DRIVERS=="snd-usb-audio", SYMLINK+="midi%k"
>>
>> You probably want %b instead of %k here which should refer to device
>> name matched by DRIVERS.
>>
>> Start with "udevadm test" to verify.
> 
> I tried the following rule:
> 
> ACTION=="add", KERNEL=="midiC*", DRIVERS=="snd-usb-audio", SYMLINK+="snd/midi%b"
> 
> and "udevadm test" complains about an "invalid DRIVERS option". What could be invalid about it?
> 

No idea. Please copy-paste actual command invocation and its output.


More information about the systemd-devel mailing list