diff options
author | Tom Gundersen <teg@jklm.no> | 2014-01-03 20:55:23 +0100 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2014-01-03 20:55:23 +0100 |
commit | 4cd1214db6cf4b262e8ce6381bc710091b375c96 (patch) | |
tree | bc6a424bdb3439f2d7cc92a64ca882e6b0bad274 /src/shared/net-util.c | |
parent | 8b264404b6cc412d3a588ca1b54fd2c1b09c5270 (diff) |
net-util: add support for Type=ethernet
When DEVTYPE is not set for a nic, it means it is a wired/ethernet
device.
Diffstat (limited to 'src/shared/net-util.c')
-rw-r--r-- | src/shared/net-util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/net-util.c b/src/shared/net-util.c index 8f8cfc9fdb..85278e5de6 100644 --- a/src/shared/net-util.c +++ b/src/shared/net-util.c @@ -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)) |