Renaming can devices interfaces names with udev

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

 



Hi all,

I'm going to be using a number of the Korlan/8devices usb2can
interfaces and I want to make sure they have persistent interface
names. Thankfully they all have unique serial numbers that are printed
on the devices so I can match a physical device with a linux interface
name.

In theory I should be able to do something like add a file at
/etc/udev/rules.d/10-usb2can.rules containing something like:

SUBSYSTEM=="net", ACTION=="add", ATTR{ID_VENDOR_ENC}=="8Devices",
ATTR{ID_MODEL}=="USB2CAN_converter", NAME="can$attr{ID_SERIAL_SHORT}"

But I've not been able to get anything to work.

Has anyone been able to get something like this to work?

I'm on Debian Buster.

Thanks,

Jasper

-- 
Your hydrogen & fuel cell partner
Arcola Energy Ltd, 24 Ashwin Street, 
London E8 3DL. www.arcolaenergy.com <https://www.arcolaenergy.com/> / +44 
20 7503 1386
Registered in England and Wales, Company Number 7257863, VAT 
Number 110085273. Copyright 2020. Confidential and Proprietary. Not to be 
disseminated or copied in full or in part.



[Index of Archives]     [Automotive Discussions]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]     [CAN Bus]

  Powered by Linux