diff options
author | Olivier Blin <oblin@mandriva.org> | 2005-08-08 11:00:15 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.org> | 2005-08-08 11:00:15 +0000 |
commit | b1f1c453f65a15de3fcfaf1f551bb5477836933f (patch) | |
tree | 4ebc853649acf7760fc4cb00a507fb6ea10a85a6 /perl-install/network | |
parent | 30ed0b04f4fadbb70bacbcda67755ef958337163 (diff) | |
download | drakx-b1f1c453f65a15de3fcfaf1f551bb5477836933f.tar drakx-b1f1c453f65a15de3fcfaf1f551bb5477836933f.tar.gz drakx-b1f1c453f65a15de3fcfaf1f551bb5477836933f.tar.bz2 drakx-b1f1c453f65a15de3fcfaf1f551bb5477836933f.tar.xz drakx-b1f1c453f65a15de3fcfaf1f551bb5477836933f.zip |
do not write aliases interfaces in iftab
Diffstat (limited to 'perl-install/network')
-rw-r--r-- | perl-install/network/ethernet.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/perl-install/network/ethernet.pm b/perl-install/network/ethernet.pm index b40ecfd0f..2ac3a4986 100644 --- a/perl-install/network/ethernet.pm +++ b/perl-install/network/ethernet.pm @@ -113,7 +113,8 @@ sub get_eth_card_mac_address { #- write interfaces MAC address in iftab sub update_iftab() { - foreach my $intf (detect_devices::getNet()) { + #- skip aliases interfaces + foreach my $intf (grep { !/:\d+$/ } detect_devices::getNet()) { 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; |