summaryrefslogtreecommitdiffstats
path: root/perl-install/network/modem.pm
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2004-08-27 11:49:48 +0000
committerOlivier Blin <oblin@mandriva.org>2004-08-27 11:49:48 +0000
commit8fb993e064a06b3958a498a588e37500937af881 (patch)
tree2c0c8b7a9ede7bb0cb855e6db473056960b246b5 /perl-install/network/modem.pm
parent59af944646e11f6806f84e48c3b6b0ebc0385437 (diff)
downloaddrakx-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/modem.pm')
-rw-r--r--perl-install/network/modem.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/perl-install/network/modem.pm b/perl-install/network/modem.pm
index e790cf83c..9ac9f91b0 100644
--- a/perl-install/network/modem.pm
+++ b/perl-install/network/modem.pm
@@ -76,6 +76,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");
#- build ifcfg-ppp0.
my $various = <<END;
@@ -102,6 +103,7 @@ DISCONNECTTIMEOUT="5"
RETRYTIMEOUT="60"
BOOTPROTO="none"
PEERDNS="$toreplace{peerdns}"
+METRIC=$toreplace{metric}
END
output("$::prefix/etc/sysconfig/network-scripts/ifcfg-ppp0",
$various,