diff options
author | Damien Chaumette <dchaumette@mandriva.com> | 2004-06-04 13:12:39 +0000 |
---|---|---|
committer | Damien Chaumette <dchaumette@mandriva.com> | 2004-06-04 13:12:39 +0000 |
commit | b772517db855fe47411d00f4964b945cb76ebd64 (patch) | |
tree | 10c0dc5cd5d685922bb5db4c1d72609aa662e1d2 /perl-install | |
parent | bc9a70e052de38f6558c155c1fd9198a5f23960c (diff) | |
download | drakx-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.pm | 5 |
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->(); }, }, |