diff options
Diffstat (limited to 'perl-install/modules.pm')
-rw-r--r-- | perl-install/modules.pm | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/perl-install/modules.pm b/perl-install/modules.pm index 594e07f9a..2117c580c 100644 --- a/perl-install/modules.pm +++ b/perl-install/modules.pm @@ -327,7 +327,12 @@ sub read_conf($;$) { sub write_conf { my ($file) = @_; - my (undef, %written) = read_conf($file); + my %written = read_conf($file); + + my %net = detect_devices::net2module(); + while (my ($k, $v) = each %net) { + $conf{$k}{alias} ||= $v; + } local *F; open F, ">> $file" or die("cannot write module config file $file: $!\n"); |