On Thu, 4 Dec 2014, Martin Hanson wrote:
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!";
};
I would use three of these sections, one with the serial number of each
interface. So:
action "ifconfig $device-name name wan inet ..."
action "ifconfig $device-name name dmz inet ..."
action "ifconfig $device-name name lan inet ..."
Then the interface names can be easily used in firewall settings.
_______________________________________________
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"