From da188129369fdbff0dfb3d280255dfba91d736b4 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Fri, 16 Sep 2005 16:10:32 +0000 Subject: automatically configure DSL connection on installation from DSL --- perl-install/network/adsl.pm | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'perl-install/network') diff --git a/perl-install/network/adsl.pm b/perl-install/network/adsl.pm index f2722f262..f3b113682 100644 --- a/perl-install/network/adsl.pm +++ b/perl-install/network/adsl.pm @@ -280,11 +280,12 @@ user "$net->{adsl}{login}" #- FIXME: ppp0 and ippp0 are hardcoded my $metric = network::tools::get_default_metric("adsl"); #- FIXME, do not override if already set - put_in_hash($net->{ifcfg}{ppp0}, { - DEVICE => 'ppp0', - TYPE => 'ADSL', - METRIC => $metric, - }) unless member($adsl_type, qw(static dhcp)); + put_in_hash($net->{ifcfg}{ppp0} ||= {}, { + DEVICE => 'ppp0', + TYPE => 'ADSL', + METRIC => $metric, + ONBOOT => 'yes', #- will be modified later in netconnect if requested + }) unless member($adsl_type, qw(static dhcp)); #- remove file used with sagem for dhcp/static connections unlink("$::prefix/etc/sysconfig/network-scripts/ifcfg-sagem"); -- cgit v1.2.1