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

Paul D. DeRocco pderocco at ix.netcom.com
Tue Jul 11 23:53:38 UTC 2017


> 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?

-- 

Ciao,               Paul D. DeRocco
Paul                mailto:pderocco at ix.netcom.com



More information about the systemd-devel mailing list