summaryrefslogtreecommitdiffstats
path: root/lib/network
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-02-22 11:27:33 +0000
committerOlivier Blin <oblin@mandriva.com>2008-02-22 11:27:33 +0000
commit98b6ea605297615bc986403ef9cdd35415ddf544 (patch)
treedae2f85e620b063cc60adc5aaed051b71c72dc07 /lib/network
parente8d66f98c3651b7db8bc85ce94473e919b4bc649 (diff)
downloaddrakx-net-98b6ea605297615bc986403ef9cdd35415ddf544.tar
drakx-net-98b6ea605297615bc986403ef9cdd35415ddf544.tar.gz
drakx-net-98b6ea605297615bc986403ef9cdd35415ddf544.tar.bz2
drakx-net-98b6ea605297615bc986403ef9cdd35415ddf544.tar.xz
drakx-net-98b6ea605297615bc986403ef9cdd35415ddf544.zip
write modalias for ethernet and wireless interfaces (#34660, #37026, #37106)
Diffstat (limited to 'lib/network')
-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 3b60210..0fc5f58 100644
--- a/lib/network/connection/ethernet.pm
+++ b/lib/network/connection/ethernet.pm
@@ -264,6 +264,10 @@ sub write_settings {
my ($self, $o_net, $o_modules_conf) = @_;
if ($o_modules_conf) {
$o_modules_conf->set_alias($self->get_interface, $self->get_driver);
+ if ($self->{device}{sysfs_device}) {
+ my $modalias = chomp_(cat_($self->{device}{sysfs_device} . "/modalias"));
+ $o_modules_conf->set_alias($modalias, $self->get_driver) if $modalias;
+ }
}
$self->SUPER::write_settings($o_net, $o_modules_conf);
}