net-util: add support for Type=ethernet
When DEVTYPE is not set for a nic, it means it is a wired/ethernet device.
This commit is contained in:
@@ -49,7 +49,7 @@ bool net_match_config(const struct ether_addr *match_mac,
|
||||
if (match_driver && !streq_ptr(match_driver, dev_driver))
|
||||
return 0;
|
||||
|
||||
if (match_type && !streq_ptr(match_type, dev_type))
|
||||
if (match_type && !streq_ptr(match_type, dev_type) && !(streq(match_type, "ethernet") && !dev_type))
|
||||
return 0;
|
||||
|
||||
if (match_name && !streq_ptr(match_name, dev_name))
|
||||
|
||||
Reference in New Issue
Block a user