summaryrefslogtreecommitdiffstats
path: root/lib/network/connection/ethernet.pm
diff options
context:
space:
mode:
authorEugeni Dodonov <eugeni@mandriva.org>2009-06-01 15:15:19 +0000
committerEugeni Dodonov <eugeni@mandriva.org>2009-06-01 15:15:19 +0000
commit135f49a4f952140fb24fb81d9a577c0b1c72dbbc (patch)
treea84150f6b7f5a6f9fcabf139f0f6cbbe6c9b91d5 /lib/network/connection/ethernet.pm
parente5ebe7dc672b6f3858c0cfa2e20d1c2180fba109 (diff)
downloaddrakx-net-135f49a4f952140fb24fb81d9a577c0b1c72dbbc.tar
drakx-net-135f49a4f952140fb24fb81d9a577c0b1c72dbbc.tar.gz
drakx-net-135f49a4f952140fb24fb81d9a577c0b1c72dbbc.tar.bz2
drakx-net-135f49a4f952140fb24fb81d9a577c0b1c72dbbc.tar.xz
drakx-net-135f49a4f952140fb24fb81d9a577c0b1c72dbbc.zip
Preserving wireless network settings (patch by Christian Lohmaier, bug #46010).
Diffstat (limited to 'lib/network/connection/ethernet.pm')
-rw-r--r--lib/network/connection/ethernet.pm4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/network/connection/ethernet.pm b/lib/network/connection/ethernet.pm
index 986947f..1722da7 100644
--- a/lib/network/connection/ethernet.pm
+++ b/lib/network/connection/ethernet.pm
@@ -76,7 +76,11 @@ sub load_interface_settings {
my ($self) = @_;
$self->network::connection::load_interface_settings;
+ $self->map_ifcfg2config_settings;
+}
+sub map_ifcfg2config_settings {
+ my ($self) = @_;
$self->{protocol} = $self->{ifcfg}{BOOTPROTO};
$self->{address}{needhostname} = $self->get_ifcfg_bool('NEEDHOSTNAME');