summaryrefslogtreecommitdiffstats
path: root/perl-install/network/adsl.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/adsl.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/adsl.pm')
-rw-r--r--perl-install/network/adsl.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/perl-install/network/adsl.pm b/perl-install/network/adsl.pm
index 00354e186..985a999a8 100644
--- a/perl-install/network/adsl.pm
+++ b/perl-install/network/adsl.pm
@@ -291,9 +291,11 @@ user "$adsl->{login}"
#- FIXME:
#- ppp0 and ippp0 are hardcoded
my $kind = $adsl_type eq 'pppoe' ? 'xDSL' : 'ADSL';
+ my $metric = network::tools::get_default_metric("adsl"); #- FIXME, do not override if already set
output_with_perm("$::prefix/etc/sysconfig/network-scripts/ifcfg-ppp0", 0705, qq(DEVICE=ppp0
ONBOOT=no
TYPE=$kind
+METRIC=$metric
));
# sagem specific stuff