Gentoo Archives: gentoo-user

From: Samuli Suominen <ssuominen@g.o>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Execute udev rule before net.* scripts
Date: Sun, 24 Aug 2014 17:08:00
Message-Id: 53FA1B64.9000901@gentoo.org
In Reply to: Re: [gentoo-user] Execute udev rule before net.* scripts by Tom H
1 On 24/08/14 20:05, Tom H wrote:
2 > On Sun, Aug 24, 2014 at 8:59 AM, Grant <emailgrant@×××××.com> wrote:
3 >> I'm trying to define names for my USB network interfaces keyed on the
4 >> interface location instead of the interface MAC address. This udev
5 >> rule renames one of them:
6 >>
7 >> SUBSYSTEM=="net", KERNEL=="enp3s0u1", NAME="net0"
8 >>
9 >> But it doesn't work automatically at boot, I have to execute 'udevadm
10 >> trigger --action=add'. How can I execute that before the net.*
11 >> scripts at boot?
12 > "enp3s0u1" isn't a kernel name; it's an "ID_NET_NAME_PATH" attribute.
13
14 That's what came to my mind too, that's why I instructed him away from it.
15
16 - Samuli

Replies

Subject Author
Re: [gentoo-user] Execute udev rule before net.* scripts Tom H <tomh0665@×××××.com>