summaryrefslogtreecommitdiffstats
path: root/perl-install/network
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2004-01-20 15:29:02 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2004-01-20 15:29:02 +0000
commitd30e30df42007625950e370a9fb3ef253a9cc555 (patch)
treec730e3fb9b3d50a5270350c3817153a90ad94d24 /perl-install/network
parent6d26b953c36cf6e79aed52dc4e8045638fe9ab2a (diff)
downloaddrakx-backup-do-not-use-d30e30df42007625950e370a9fb3ef253a9cc555.tar
drakx-backup-do-not-use-d30e30df42007625950e370a9fb3ef253a9cc555.tar.gz
drakx-backup-do-not-use-d30e30df42007625950e370a9fb3ef253a9cc555.tar.bz2
drakx-backup-do-not-use-d30e30df42007625950e370a9fb3ef253a9cc555.tar.xz
drakx-backup-do-not-use-d30e30df42007625950e370a9fb3ef253a9cc555.zip
fix dyn/static stuff
Diffstat (limited to 'perl-install/network')
-rw-r--r--perl-install/network/modem.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/perl-install/network/modem.pm b/perl-install/network/modem.pm
index 0619abe58..50f43d525 100644
--- a/perl-install/network/modem.pm
+++ b/perl-install/network/modem.pm
@@ -37,8 +37,10 @@ sub ppp_configure {
# handle static/dynamic settings:
if ($modem->{auto_ip} eq N("Automatic")) {
$toreplace{$_} = '0.0.0.0' foreach qw(IPAddr SubnetMask) ;
+ } else {
+ $toreplace{$_} = $modem->{$_} foreach qw(IPAddr SubnetMask) ;
}
- $toreplace{Gateway} = '0.0.0.0' if $modem->{auto_gateway} eq N("Automatic");
+ $toreplace{Gateway} = $modem->{auto_gateway} eq N("Automatic") ? '0.0.0.0' : $modem->{Gateway};
#- build ifcfg-ppp0.