summaryrefslogtreecommitdiffstats
path: root/perl-install/network
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2004-08-27 12:43:59 +0000
committerOlivier Blin <oblin@mandriva.org>2004-08-27 12:43:59 +0000
commitbf4f9fc6e28a877fc9bd0640d31e0af73120f869 (patch)
tree4be0ee1d6f54599f72aa3b9c5c8090f3d8663cb6 /perl-install/network
parent1bc7125ab2df89405c431bc19b31343da8749e25 (diff)
downloaddrakx-backup-do-not-use-bf4f9fc6e28a877fc9bd0640d31e0af73120f869.tar
drakx-backup-do-not-use-bf4f9fc6e28a877fc9bd0640d31e0af73120f869.tar.gz
drakx-backup-do-not-use-bf4f9fc6e28a877fc9bd0640d31e0af73120f869.tar.bz2
drakx-backup-do-not-use-bf4f9fc6e28a877fc9bd0640d31e0af73120f869.tar.xz
drakx-backup-do-not-use-bf4f9fc6e28a877fc9bd0640d31e0af73120f869.zip
use same keys than manage interface for metrics
Diffstat (limited to 'perl-install/network')
-rw-r--r--perl-install/network/modem.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/perl-install/network/modem.pm b/perl-install/network/modem.pm
index a8a056595..91e047066 100644
--- a/perl-install/network/modem.pm
+++ b/perl-install/network/modem.pm
@@ -30,7 +30,7 @@ sub ppp_read_conf {
}
foreach (cat_("/etc/sysconfig/network-scripts/ifcfg-ppp0")) {
/NAME=(['"]?)(.*)\1/ and $modem->{login} ||= $2;
- /^METRIC=(.*)/ and $modem->{metric} = $1;
+ /^METRIC=(.*)/ and $modem->{METRIC} = $1;
}
$modem->{login} ||= $l{Username};
my $secret = network::tools::read_secret_backend();
@@ -77,7 +77,7 @@ sub ppp_configure {
}
$toreplace{Gateway} = $modem->{auto_gateway} eq N("Automatic") ? '0.0.0.0' : $modem->{Gateway};
- $toreplace{metric} = defined($modem->{metric}) ? $modem->{metric} : network::tools::get_default_metric("modem");
+ $toreplace{METRIC} = defined($modem->{METRIC}) ? $modem->{METRIC} : network::tools::get_default_metric("modem");
#- build ifcfg-ppp0.
my $various = <<END;
@@ -104,7 +104,7 @@ DISCONNECTTIMEOUT="5"
RETRYTIMEOUT="60"
BOOTPROTO="none"
PEERDNS="$toreplace{peerdns}"
-METRIC=$toreplace{metric}
+METRIC=$toreplace{METRIC}
END
output("$::prefix/etc/sysconfig/network-scripts/ifcfg-ppp0",
$various,