diff options
author | Olivier Blin <oblin@mandriva.org> | 2005-04-19 16:19:06 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.org> | 2005-04-19 16:19:06 +0000 |
commit | e507ca693ee23532885e30b5c6c5c6c577a17dc0 (patch) | |
tree | 60f590fe79c3f00050810f37efc4db319ba76ce6 /perl-install/network/ethernet.pm | |
parent | 1e8ae805e03d2c4fe038d25185c9d05f25f9d314 (diff) | |
download | drakx-e507ca693ee23532885e30b5c6c5c6c577a17dc0.tar drakx-e507ca693ee23532885e30b5c6c5c6c577a17dc0.tar.gz drakx-e507ca693ee23532885e30b5c6c5c6c577a17dc0.tar.bz2 drakx-e507ca693ee23532885e30b5c6c5c6c577a17dc0.tar.xz drakx-e507ca693ee23532885e30b5c6c5c6c577a17dc0.zip |
do not write zeroed MAC addresses in iftab, it confuses ifrename
Diffstat (limited to 'perl-install/network/ethernet.pm')
-rw-r--r-- | perl-install/network/ethernet.pm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/perl-install/network/ethernet.pm b/perl-install/network/ethernet.pm index 615d6c809..0f748af23 100644 --- a/perl-install/network/ethernet.pm +++ b/perl-install/network/ethernet.pm @@ -132,6 +132,8 @@ sub get_eth_card_mac_address { sub update_iftab() { foreach my $intf (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; my $descriptor = ${{ ether => 'mac', ieee1394 => 'mac_ieee1394' }}{$link_type} or next; substInFile { s/^$intf\s+.*\n//; |