diff options
Diffstat (limited to 'perl-install/network/modem.pm')
-rw-r--r-- | perl-install/network/modem.pm | 2 |
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, |