diff options
author | Olivier Blin <oblin@mandriva.com> | 2008-03-05 21:12:36 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2008-03-05 21:12:36 +0000 |
commit | 2c2312dc57cca2ced50e2d1c7526c99c5042edfe (patch) | |
tree | bdc176b72aeae6f7b05d236051cfe482988c3983 /lib/network/connection/ethernet.pm | |
parent | e6673a9b02ed8c7e1d95a675efd13de4c51adca2 (diff) | |
download | drakx-net-2c2312dc57cca2ced50e2d1c7526c99c5042edfe.tar drakx-net-2c2312dc57cca2ced50e2d1c7526c99c5042edfe.tar.gz drakx-net-2c2312dc57cca2ced50e2d1c7526c99c5042edfe.tar.bz2 drakx-net-2c2312dc57cca2ced50e2d1c7526c99c5042edfe.tar.xz drakx-net-2c2312dc57cca2ced50e2d1c7526c99c5042edfe.zip |
do not update iftab for vlan interfaces either
Diffstat (limited to 'lib/network/connection/ethernet.pm')
-rw-r--r-- | lib/network/connection/ethernet.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/network/connection/ethernet.pm b/lib/network/connection/ethernet.pm index 1e147ca..95fd17e 100644 --- a/lib/network/connection/ethernet.pm +++ b/lib/network/connection/ethernet.pm @@ -470,8 +470,8 @@ sub get_eth_card_mac_address { #- write interfaces MAC address in iftab sub update_iftab() { - #- skip aliases interfaces - foreach my $intf (grep { !network::tools::is_virtual_interface($_) } detect_devices::get_lan_interfaces()) { + #- skip aliases and vlan interfaces + foreach my $intf (grep { network::tools::is_real_interface($_) } detect_devices::get_lan_interfaces()) { my ($link_type, $mac_address) = get_eth_card_mac_address($intf) or next; #- do not write zeroed MAC addresses in iftab, it confuses ifrename $mac_address =~ /^[0:]+$/ and next; |