summaryrefslogtreecommitdiffstats
path: root/perl-install/network
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2005-09-16 16:10:32 +0000
committerOlivier Blin <oblin@mandriva.org>2005-09-16 16:10:32 +0000
commitda188129369fdbff0dfb3d280255dfba91d736b4 (patch)
tree1571ecec4f86044dd54b41227a8aafd842c8c414 /perl-install/network
parent034c6d8da3c3c3144ad29ceb05926858f2f67ff6 (diff)
downloaddrakx-da188129369fdbff0dfb3d280255dfba91d736b4.tar
drakx-da188129369fdbff0dfb3d280255dfba91d736b4.tar.gz
drakx-da188129369fdbff0dfb3d280255dfba91d736b4.tar.bz2
drakx-da188129369fdbff0dfb3d280255dfba91d736b4.tar.xz
drakx-da188129369fdbff0dfb3d280255dfba91d736b4.zip
automatically configure DSL connection on installation from DSL
Diffstat (limited to 'perl-install/network')
-rw-r--r--perl-install/network/adsl.pm11
1 files changed, 6 insertions, 5 deletions
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");