summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorDamien Chaumette <dchaumette@mandriva.com>2004-06-04 13:12:39 +0000
committerDamien Chaumette <dchaumette@mandriva.com>2004-06-04 13:12:39 +0000
commitb772517db855fe47411d00f4964b945cb76ebd64 (patch)
tree10c0dc5cd5d685922bb5db4c1d72609aa662e1d2 /perl-install
parentbc9a70e052de38f6558c155c1fd9198a5f23960c (diff)
downloaddrakx-backup-do-not-use-b772517db855fe47411d00f4964b945cb76ebd64.tar
drakx-backup-do-not-use-b772517db855fe47411d00f4964b945cb76ebd64.tar.gz
drakx-backup-do-not-use-b772517db855fe47411d00f4964b945cb76ebd64.tar.bz2
drakx-backup-do-not-use-b772517db855fe47411d00f4964b945cb76ebd64.tar.xz
drakx-backup-do-not-use-b772517db855fe47411d00f4964b945cb76ebd64.zip
switch ONBOOT to on/off for isdn and adsl connections
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/network/netconnect.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/perl-install/network/netconnect.pm b/perl-install/network/netconnect.pm
index f9d7c241c..94c9d553d 100644
--- a/perl-install/network/netconnect.pm
+++ b/perl-install/network/netconnect.pm
@@ -1158,6 +1158,11 @@ N("Last but not least you can also type in your DNS server IP addresses."),
post => sub {
my ($res) = @_;
$netc->{at_boot} = $res;
+ $res = bool2yesno($res);
+ substInFile { s/^ONBOOT.*\n//; $_ .= qq(ONBOOT=$res\n) if eof }
+ $netc->{internet_cnx_choice} eq 'adsl' ?
+ "$::prefix/etc/sysconfig/network-scripts/ifcfg-ppp0" :
+ "$::prefix/etc/sysconfig/network-scripts/ifcfg-ippp0";
return $after_start_on_boot_step->();
},
},