summaryrefslogtreecommitdiffstats
path: root/perl-install/network/netconnect.pm
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2004-10-03 16:46:25 +0000
committerOlivier Blin <oblin@mandriva.org>2004-10-03 16:46:25 +0000
commite02f53b346914952de84c16b832850134db9aca1 (patch)
tree1c8e800abb4c0329b12356b7fde61ba14cd0953a /perl-install/network/netconnect.pm
parentbde4bc56d15563dae0595ff3ce3e4d5b9f617993 (diff)
downloaddrakx-backup-do-not-use-e02f53b346914952de84c16b832850134db9aca1.tar
drakx-backup-do-not-use-e02f53b346914952de84c16b832850134db9aca1.tar.gz
drakx-backup-do-not-use-e02f53b346914952de84c16b832850134db9aca1.tar.bz2
drakx-backup-do-not-use-e02f53b346914952de84c16b832850134db9aca1.tar.xz
drakx-backup-do-not-use-e02f53b346914952de84c16b832850134db9aca1.zip
do not lose ONBOOT setting for manual/dhcp dsl connections
Diffstat (limited to 'perl-install/network/netconnect.pm')
-rw-r--r--perl-install/network/netconnect.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/perl-install/network/netconnect.pm b/perl-install/network/netconnect.pm
index 02d066593..43cdda6fc 100644
--- a/perl-install/network/netconnect.pm
+++ b/perl-install/network/netconnect.pm
@@ -1203,6 +1203,7 @@ It is not necessary on most networks."),
my ($res) = @_;
$netc->{at_boot} = $res;
$res = bool2yesno($res);
+ $ethntf->{ONBOOT} = $res if ($netcnx->{type} eq 'adsl' && member($adsl_type, qw(manual dhcp)));
my $ifcfg_file = "$::prefix/etc/sysconfig/network-scripts/ifcfg-$netc->{NET_INTERFACE}";
-f $ifcfg_file and substInFile { s/^ONBOOT.*\n//; $_ .= qq(ONBOOT=$res\n) if eof } $ifcfg_file;
return $after_start_on_boot_step->();