diff options
-rw-r--r-- | perl-install/network/ethernet.pm | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/perl-install/network/ethernet.pm b/perl-install/network/ethernet.pm index 1a84e48a5..114fe2f27 100644 --- a/perl-install/network/ethernet.pm +++ b/perl-install/network/ethernet.pm @@ -118,8 +118,14 @@ sub update_iftab() { # automatic net aliases configuration sub configure_eth_aliases { my ($modules_conf) = @_; + my @pcmcia = detect_devices::pcmcia_probe(); foreach my $card (get_eth_cards($modules_conf)) { - $modules_conf->set_alias($card->[0], $card->[1]); + if (any { $_->{device} eq $card->[0] } @pcmcia) { + #- don't write aliases for pcmcia cards, or cardmgr won't be loaded + $modules_conf->remove_alias($card->[0]); + } else { + $modules_conf->set_alias($card->[0], $card->[1]); + } } } |