> 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
_______________________________________________
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"

Reply via email to