summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2004-08-27 12:06:52 +0000
committerOlivier Blin <oblin@mandriva.org>2004-08-27 12:06:52 +0000
commit34a9764cc430cfa0db12af7178b0d0a347b8423a (patch)
tree5dace860a16ab76e44c7d62077ab91f5a6adb8d0
parent8fb993e064a06b3958a498a588e37500937af881 (diff)
downloaddrakx-34a9764cc430cfa0db12af7178b0d0a347b8423a.tar
drakx-34a9764cc430cfa0db12af7178b0d0a347b8423a.tar.gz
drakx-34a9764cc430cfa0db12af7178b0d0a347b8423a.tar.bz2
drakx-34a9764cc430cfa0db12af7178b0d0a347b8423a.tar.xz
drakx-34a9764cc430cfa0db12af7178b0d0a347b8423a.zip
(ppp_read_conf) read metric if set
-rw-r--r--perl-install/network/modem.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/perl-install/network/modem.pm b/perl-install/network/modem.pm
index 9ac9f91b0..a8a056595 100644
--- a/perl-install/network/modem.pm
+++ b/perl-install/network/modem.pm
@@ -30,6 +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;
}
$modem->{login} ||= $l{Username};
my $secret = network::tools::read_secret_backend();