From b1f1c453f65a15de3fcfaf1f551bb5477836933f Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Mon, 8 Aug 2005 11:00:15 +0000 Subject: do not write aliases interfaces in iftab --- perl-install/network/ethernet.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'perl-install') 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; -- cgit v1.2.1