diff options
author | Olivier Blin <oblin@mandriva.org> | 2004-08-27 11:49:48 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.org> | 2004-08-27 11:49:48 +0000 |
commit | 8fb993e064a06b3958a498a588e37500937af881 (patch) | |
tree | 2c0c8b7a9ede7bb0cb855e6db473056960b246b5 /perl-install/network/netconnect.pm | |
parent | 59af944646e11f6806f84e48c3b6b0ebc0385437 (diff) | |
download | drakx-8fb993e064a06b3958a498a588e37500937af881.tar drakx-8fb993e064a06b3958a498a588e37500937af881.tar.gz drakx-8fb993e064a06b3958a498a588e37500937af881.tar.bz2 drakx-8fb993e064a06b3958a498a588e37500937af881.tar.xz drakx-8fb993e064a06b3958a498a588e37500937af881.zip |
write metric in ifcfg files according to connection type
Diffstat (limited to 'perl-install/network/netconnect.pm')
-rw-r--r-- | perl-install/network/netconnect.pm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/perl-install/network/netconnect.pm b/perl-install/network/netconnect.pm index cf5daabf6..cd19676a7 100644 --- a/perl-install/network/netconnect.pm +++ b/perl-install/network/netconnect.pm @@ -864,6 +864,9 @@ Do you really want to reconfigure this device?"), { pre => sub { $find_lan_module->(); + my $intf_type = member($module, list_modules::category2modules('network/gigabit')) ? "ethernet_gigabit" : "ethernet"; + defined($ethntf->{METRIC}) or $ethntf->{METRIC} = network::tools::get_default_metric($intf_type); + $protocol = $l10n_lan_protocols{defined $auto_ip ? ($auto_ip ? 'dhcp' : 'static') : $ethntf->{BOOTPROTO}} || 0; }, name => sub { |