On 2/8/21 10:04 AM, lejeczek via CentOS wrote:
On 08/02/2021 08:10, Strahil Nikolov wrote:
Can you share your udev rules ?
Best Regards, Strahil Nikolov
On Sun, Feb 7, 2021 at 15:33, lejeczek via CentOS <centos@centos.org> wrote: Hi guys, I have an Ethernet USB adapter for which udev executes my custom rules but!... udev does it only at plug-in event and not! when the USB stays plugged in during a reboot, then same rules are ignored (or some other problem results in udev failure to do the same when device is plugged to a running system). My system is just an average box with a Ryzen on a B550 platform. Anybody sees this reproduce? many thanks, L. _______________________________________________ CentOS mailing list CentOS@centos.org <mailto:CentOS@centos.org> https://lists.centos.org/mailman/listinfo/centos <https://lists.centos.org/mailman/listinfo/centos>
simple rules:
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:1e:10:1f:00:00", ATTR{type}=="1", KERNEL=="eth*", NAME="lteusb"
like I said - I get iface "lteusb" when I plug the USB so it works. If I leave that USB plugged in and reboot then no "lteusb".
I tried your rule (using the appropriate address) and it does seem to survive a reboot. The device is "Apple, Inc. Ethernet Adapter [A1277]" manufactured by Asix.
uname -r: 3.10.0-1160.11.1.el7.x86_64 let me know if you want me to try anything else.
regards, L. _______________________________________________ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos