[systemd-devel] Match section of .link file not working

Simon Peeters peeters.simon at gmail.com
Sun Aug 24 00:19:13 PDT 2014


>> Ok, so there is only one problem now:
>> ID_PATH is the same for all my vif interfaces, and i need to select
>> only one of them.
>>
>
> Please show "udevadm info -q all" for each interface.

P: /devices/ocp/47400000.usb/47401c00.usb/musb-hdrc.1.auto/usb2/2-1/2-1:1.0/net/wlan0
E: DEVPATH=/devices/ocp/47400000.usb/47401c00.usb/musb-hdrc.1.auto/usb2/2-1/2-1:1.0/net/wlan0
E: DEVTYPE=wlan
E: ID_BUS=usb
E: ID_MODEL=USB2.0_WLAN
E: ID_MODEL_ENC=USB2.0\x20WLAN
E: ID_MODEL_FROM_DATABASE=TP-Link TL-WN821N v2 / TL-WN822N v1 802.11n
[Atheros AR9170]
E: ID_MODEL_ID=1002
E: ID_NET_DRIVER=carl9170
E: ID_NET_NAME_MAC=wlx6cfdb907b167
E: ID_OUI_FROM_DATABASE=Proware Technologies Co Ltd.
E: ID_PATH=platform-musb-hdrc.1.auto-usb-0:1:1.0
E: ID_PATH_TAG=platform-musb-hdrc_1_auto-usb-0_1_1_0
E: ID_REVISION=0106
E: ID_SERIAL=ATHER_USB2.0_WLAN_12345
E: ID_SERIAL_SHORT=12345
E: ID_TYPE=generic
E: ID_USB_CLASS_FROM_DATABASE=Vendor Specific Class
E: ID_USB_DRIVER=carl9170
E: ID_USB_INTERFACES=:ff0000:
E: ID_USB_INTERFACE_NUM=00
E: ID_USB_PROTOCOL_FROM_DATABASE=Vendor Specific Protocol
E: ID_USB_SUBCLASS_FROM_DATABASE=Vendor Specific Subclass
E: ID_VENDOR=ATHER
E: ID_VENDOR_ENC=ATHER
E: ID_VENDOR_FROM_DATABASE=Atheros Communications, Inc.
E: ID_VENDOR_ID=0cf3
E: IFINDEX=10
E: INTERFACE=wlan0
E: SUBSYSTEM=net
E: SYSTEMD_ALIAS=/sys/subsystem/net/devices/wlan0
E: TAGS=:systemd:
E: USEC_INITIALIZED=805171

P: /devices/ocp/47400000.usb/47401c00.usb/musb-hdrc.1.auto/usb2/2-1/2-1:1.0/net/wlv1
E: DEVPATH=/devices/ocp/47400000.usb/47401c00.usb/musb-hdrc.1.auto/usb2/2-1/2-1:1.0/net/wlv1
E: DEVTYPE=wlan
E: ID_BUS=usb
E: ID_MODEL=USB2.0_WLAN
E: ID_MODEL_ENC=USB2.0\x20WLAN
E: ID_MODEL_FROM_DATABASE=TP-Link TL-WN821N v2 / TL-WN822N v1 802.11n
[Atheros AR9170]
E: ID_MODEL_ID=1002
E: ID_NET_DRIVER=carl9170
E: ID_NET_NAME_MAC=wlx6cfdb907b167
E: ID_OUI_FROM_DATABASE=Proware Technologies Co Ltd.
E: ID_PATH=platform-musb-hdrc.1.auto-usb-0:1:1.0
E: ID_PATH_TAG=platform-musb-hdrc_1_auto-usb-0_1_1_0
E: ID_REVISION=0106
E: ID_SERIAL=ATHER_USB2.0_WLAN_12345
E: ID_SERIAL_SHORT=12345
E: ID_TYPE=generic
E: ID_USB_CLASS_FROM_DATABASE=Vendor Specific Class
E: ID_USB_DRIVER=carl9170
E: ID_USB_INTERFACES=:ff0000:
E: ID_USB_INTERFACE_NUM=00
E: ID_USB_PROTOCOL_FROM_DATABASE=Vendor Specific Protocol
E: ID_USB_SUBCLASS_FROM_DATABASE=Vendor Specific Subclass
E: ID_VENDOR=ATHER
E: ID_VENDOR_ENC=ATHER
E: ID_VENDOR_FROM_DATABASE=Atheros Communications, Inc.
E: ID_VENDOR_ID=0cf3
E: IFINDEX=11
E: INTERFACE=wlv1
E: SUBSYSTEM=net
E: SYSTEMD_ALIAS=/sys/subsystem/net/devices/wlv1
E: TAGS=:systemd:
E: USEC_INITIALIZED=113969784

P: /devices/ocp/47400000.usb/47401c00.usb/musb-hdrc.1.auto/usb2/2-1/2-1:1.0/net/wlv2
E: DEVPATH=/devices/ocp/47400000.usb/47401c00.usb/musb-hdrc.1.auto/usb2/2-1/2-1:1.0/net/wlv2
E: DEVTYPE=wlan
E: ID_BUS=usb
E: ID_MODEL=USB2.0_WLAN
E: ID_MODEL_ENC=USB2.0\x20WLAN
E: ID_MODEL_FROM_DATABASE=TP-Link TL-WN821N v2 / TL-WN822N v1 802.11n
[Atheros AR9170]
E: ID_MODEL_ID=1002
E: ID_NET_DRIVER=carl9170
E: ID_NET_NAME_MAC=wlx6cfdb907b167
E: ID_OUI_FROM_DATABASE=Proware Technologies Co Ltd.
E: ID_PATH=platform-musb-hdrc.1.auto-usb-0:1:1.0
E: ID_PATH_TAG=platform-musb-hdrc_1_auto-usb-0_1_1_0
E: ID_REVISION=0106
E: ID_SERIAL=ATHER_USB2.0_WLAN_12345
E: ID_SERIAL_SHORT=12345
E: ID_TYPE=generic
E: ID_USB_CLASS_FROM_DATABASE=Vendor Specific Class
E: ID_USB_DRIVER=carl9170
E: ID_USB_INTERFACES=:ff0000:
E: ID_USB_INTERFACE_NUM=00
E: ID_USB_PROTOCOL_FROM_DATABASE=Vendor Specific Protocol
E: ID_USB_SUBCLASS_FROM_DATABASE=Vendor Specific Subclass
E: ID_VENDOR=ATHER
E: ID_VENDOR_ENC=ATHER
E: ID_VENDOR_FROM_DATABASE=Atheros Communications, Inc.
E: ID_VENDOR_ID=0cf3
E: IFINDEX=12
E: INTERFACE=wlv2
E: SUBSYSTEM=net
E: SYSTEMD_ALIAS=/sys/subsystem/net/devices/wlv2
E: TAGS=:systemd:
E: USEC_INITIALIZED=114033988

wlv2 is a client and needs a stable mac, otherwise the dhcp f*cs up.
wlv1 is an acesspoint, and needs a mac different from wlv2. (This
should probably also be stable, but i can live with random for this
one.)
(yes, the wlv3 was just for testing, wlv1 and wlv2 are the real ones)


More information about the systemd-devel mailing list