summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2005-08-08 11:00:15 +0000
committerOlivier Blin <oblin@mandriva.org>2005-08-08 11:00:15 +0000
commitb1f1c453f65a15de3fcfaf1f551bb5477836933f (patch)
tree4ebc853649acf7760fc4cb00a507fb6ea10a85a6
parent30ed0b04f4fadbb70bacbcda67755ef958337163 (diff)
downloaddrakx-b1f1c453f65a15de3fcfaf1f551bb5477836933f.tar
drakx-b1f1c453f65a15de3fcfaf1f551bb5477836933f.tar.gz
drakx-b1f1c453f65a15de3fcfaf1f551bb5477836933f.tar.bz2
drakx-b1f1c453f65a15de3fcfaf1f551bb5477836933f.tar.xz
drakx-b1f1c453f65a15de3fcfaf1f551bb5477836933f.zip
do not write aliases interfaces in iftab
-rw-r--r--perl-install/network/ethernet.pm3
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;