diff options
Diffstat (limited to 'lib/network/connection')
-rw-r--r-- | lib/network/connection/ethernet.pm | 4 |
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); } |