summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2005-03-18 17:12:28 +0000
committerOlivier Blin <oblin@mandriva.org>2005-03-18 17:12:28 +0000
commit720130c8ada5754e7aa8ba539301d5842d63815f (patch)
tree760b3b8eabf15795be0a35380d025667a975344a
parent7143eda27a4ccf66c276efecfb1916b53a80ce0c (diff)
downloaddrakx-720130c8ada5754e7aa8ba539301d5842d63815f.tar
drakx-720130c8ada5754e7aa8ba539301d5842d63815f.tar.gz
drakx-720130c8ada5754e7aa8ba539301d5842d63815f.tar.bz2
drakx-720130c8ada5754e7aa8ba539301d5842d63815f.tar.xz
drakx-720130c8ada5754e7aa8ba539301d5842d63815f.zip
remove other mac address occurrences in iftab
-rw-r--r--perl-install/network/ethernet.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/perl-install/network/ethernet.pm b/perl-install/network/ethernet.pm
index d2a32e54e..615d6c809 100644
--- a/perl-install/network/ethernet.pm
+++ b/perl-install/network/ethernet.pm
@@ -135,6 +135,7 @@ sub update_iftab() {
my $descriptor = ${{ ether => 'mac', ieee1394 => 'mac_ieee1394' }}{$link_type} or next;
substInFile {
s/^$intf\s+.*\n//;
+ s/^.*\s+$mac_address\n//;
$_ .= qq($intf\t$descriptor $mac_address\n) if eof;
} "$::prefix/etc/iftab";
}