Date: Thu, 04 Dec 2014 04:51:40 +0100 From: Martin Hanson <greencoppermine@yandex.com> To: Warren Block <wblock@wonkity.com> Cc: "freebsd-net@freebsd.org" <freebsd-net@freebsd.org> Subject: Re: NICs devices switches "pshycial" place on each boot Message-ID: <2659291417665100@web17m.yandex.ru> In-Reply-To: <alpine.BSF.2.11.1412031601220.13301@wonkity.com> References: <1511041417624247@web23g.yandex.ru> <alpine.BSF.2.11.1412031024340.32996@wonkity.com> <212351417642134@web20h.yandex.ru> <alpine.BSF.2.11.1412031601220.13301@wonkity.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> It might need a delay before the device is ready. Running devd in the
> foreground like that will show all the detected events.
Indeed that helped.
This is what I got with the output of messages. I don't know how to either give the device another unique name or somehow intercept what is happening so that I can set the device name.
notify 1000 {
match "system" "USB";
match "subsystem" "INTERFACE";
match "vendor" "0x0b95";
match "product" "0x1790";
match "sernum" "0000249B0DE00C";
match "type" "ATTACH";
action "logger I HAVE ATTACHED A DEVICE!";
};
Dec 4 04:47:00 gateway1 kernel: ugen3.2: <ASIX Elec. Corp.> at usbus3
Dec 4 04:47:00 gateway1 kernel: axge0: <NetworkInterface> on usbus3
Dec 4 04:47:00 gateway1 devd: Executing 'logger FOO HAS ATTECHED A DEVICE!'
Dec 4 04:47:00 gateway1 martin: I HAVE ATTACHED A DEVICE!
Dec 4 04:47:00 gateway1 kernel: miibus1: <MII bus> on axge0
Dec 4 04:47:00 gateway1 kernel: rgephy0: <RTL8169S/8110S/8211 1000BASE-T media interface> PHY 3 on miibus1
Dec 4 04:47:00 gateway1 kernel: rgephy0: none, 10baseT, 10baseT-FDX, 10baseT-FDX-flow, 100baseTX, 100baseTX-FDX, 100baseTX-FDX-flow, 1000baseT-FDX, 1000baseT-FDX-master, 1000baseT-FDX-flow, 1000baseT-FDX-flow-master, auto, auto-flow
Dec 4 04:47:00 gateway1 kernel: ue0: <USB Ethernet> on axge0
Dec 4 04:47:00 gateway1 kernel: ue0: Ethernet address: 00:24:9b:0d:e0:0c
Dec 4 04:47:00 gateway1 devd: Executing '/etc/pccard_ether ue0 start'
Dec 4 04:47:00 gateway1 kernel: ue0: link state changed to DOWN
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2659291417665100>
