From 34a9764cc430cfa0db12af7178b0d0a347b8423a Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Fri, 27 Aug 2004 12:06:52 +0000 Subject: (ppp_read_conf) read metric if set --- perl-install/network/modem.pm | 1 + 1 file changed, 1 insertion(+) (limited to 'perl-install/network') 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(); -- cgit v1.2.1