summaryrefslogtreecommitdiffstats
path: root/lib/network/connection/ethernet.pm
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-02-22 10:44:50 +0000
committerOlivier Blin <oblin@mandriva.com>2008-02-22 10:44:50 +0000
commite8d66f98c3651b7db8bc85ce94473e919b4bc649 (patch)
treecae98df25d589472ad52d466465d3feda79c8afb /lib/network/connection/ethernet.pm
parentd35772131c6eb6c92ce3d99aff93070e8e061723 (diff)
downloaddrakx-net-e8d66f98c3651b7db8bc85ce94473e919b4bc649.tar
drakx-net-e8d66f98c3651b7db8bc85ce94473e919b4bc649.tar.gz
drakx-net-e8d66f98c3651b7db8bc85ce94473e919b4bc649.tar.bz2
drakx-net-e8d66f98c3651b7db8bc85ce94473e919b4bc649.tar.xz
drakx-net-e8d66f98c3651b7db8bc85ce94473e919b4bc649.zip
expand for next commit
Diffstat (limited to 'lib/network/connection/ethernet.pm')
-rw-r--r--lib/network/connection/ethernet.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/network/connection/ethernet.pm b/lib/network/connection/ethernet.pm
index 7b7cfc4..3b60210 100644
--- a/lib/network/connection/ethernet.pm
+++ b/lib/network/connection/ethernet.pm
@@ -262,7 +262,9 @@ sub build_ifcfg_settings {
sub write_settings {
my ($self, $o_net, $o_modules_conf) = @_;
- $o_modules_conf->set_alias($self->get_interface, $self->get_driver) if $o_modules_conf;
+ if ($o_modules_conf) {
+ $o_modules_conf->set_alias($self->get_interface, $self->get_driver);
+ }
$self->SUPER::write_settings($o_net, $o_modules_conf);
}