summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorColin Guthrie <colin@mageia.org>2014-01-05 19:33:43 +0000
committerColin Guthrie <colin@mageia.org>2014-01-05 19:33:43 +0000
commit500719ec13c52d494b6e17067e81243be83b76f8 (patch)
treea308e0415da7e3c5a47980beadb31fad547db7a8 /lib
parent6a914b6e1495da0594dccc55c16455862c55bc3b (diff)
downloaddrakx-net-500719ec13c52d494b6e17067e81243be83b76f8.tar
drakx-net-500719ec13c52d494b6e17067e81243be83b76f8.tar.gz
drakx-net-500719ec13c52d494b6e17067e81243be83b76f8.tar.bz2
drakx-net-500719ec13c52d494b6e17067e81243be83b76f8.tar.xz
drakx-net-500719ec13c52d494b6e17067e81243be83b76f8.zip
Nuke the use of /etc/iftab (it's no longer useful) mga#11592
Diffstat (limited to 'lib')
-rw-r--r--lib/network/connection/ethernet.pm18
1 files changed, 0 insertions, 18 deletions
diff --git a/lib/network/connection/ethernet.pm b/lib/network/connection/ethernet.pm
index a4023a1..9b5a9d4 100644
--- a/lib/network/connection/ethernet.pm
+++ b/lib/network/connection/ethernet.pm
@@ -491,23 +491,6 @@ sub get_eth_card_mac_address {
`$::prefix/sbin/ip -o link show $intf 2>/dev/null` =~ m|.*link/(\S+)\s((?:[0-9a-f]{2}:?)+)\s|;
}
-#- write interfaces MAC address in iftab
-sub update_iftab() {
- #- skip aliases and vlan interfaces
- foreach my $intf (grep { network::tools::is_real_interface($_) } detect_devices::get_lan_interfaces()) {
- 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;
- # ifrename supports alsa IEEE1394, EUI64 and IRDA
- member($link_type, 'ether', 'ieee1394', 'irda', '[27]') or next;
- substInFile {
- s/^$intf\s+.*\n//;
- s/^.*\s+$mac_address\n//;
- $_ .= qq($intf mac $mac_address\n) if eof;
- } "$::prefix/etc/iftab";
- }
-}
-
sub update_udev_net_config() {
my $net_name_helper = "/lib/udev/write_net_rules";
my $udev_net_config = "$::prefix/etc/udev/rules.d/70-persistent-net.rules";
@@ -535,7 +518,6 @@ sub configure_eth_aliases {
$modules_conf->set_alias($card->[0], $card->[1]);
}
$::isStandalone and $modules_conf->write;
- update_iftab();
update_udev_net_config();
}