diff options
author | Olivier Blin <oblin@mandriva.org> | 2005-02-28 10:39:04 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.org> | 2005-02-28 10:39:04 +0000 |
commit | 0edd36d12518eb16816af9ce2c5d05bb694cdea6 (patch) | |
tree | 1e5eba94d77c5455c3c14ee2d703d855f762f8c5 /perl-install/network | |
parent | 6afe4e9952f3a46f4656b97863facb4f881dc743 (diff) | |
download | drakx-0edd36d12518eb16816af9ce2c5d05bb694cdea6.tar drakx-0edd36d12518eb16816af9ce2c5d05bb694cdea6.tar.gz drakx-0edd36d12518eb16816af9ce2c5d05bb694cdea6.tar.bz2 drakx-0edd36d12518eb16816af9ce2c5d05bb694cdea6.tar.xz drakx-0edd36d12518eb16816af9ce2c5d05bb694cdea6.zip |
apply USERCTL settings for modems too
Diffstat (limited to 'perl-install/network')
-rw-r--r-- | perl-install/network/netconnect.pm | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/perl-install/network/netconnect.pm b/perl-install/network/netconnect.pm index 50fcfddcc..053579875 100644 --- a/perl-install/network/netconnect.pm +++ b/perl-install/network/netconnect.pm @@ -1300,7 +1300,10 @@ It is not necessary on most networks."), default => sub { bool2yesno(text2bool($intf->{$netc->{NET_INTERFACE}}{USERCTL})) }, post => sub { my ($res) = @_; - $intf->{$netc->{NET_INTERFACE}}{USERCTL} = bool2yesno($res); + $res = bool2yesno($res); + $intf->{$netc->{NET_INTERFACE}}{USERCTL} = $res; + my $ifcfg_file = "$::prefix/etc/sysconfig/network-scripts/ifcfg-$netc->{NET_INTERFACE}"; + -f $ifcfg_file and substInFile { s/^USERCTL.*\n//; $_ .= qq(USERCTL=$res\n) if eof } $ifcfg_file; return $goto_start_on_boot_ifneeded->(); }, }, |