From 0fda8abd4f3bf91257265c8f6cd56650dfccebda Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Thu, 8 Jul 2004 01:43:00 +0000 Subject: fix previous commit --- perl-install/modules.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/perl-install/modules.pm b/perl-install/modules.pm index b2430190e..832a93127 100644 --- a/perl-install/modules.pm +++ b/perl-install/modules.pm @@ -296,7 +296,7 @@ sub write_conf() { #- Substitute new aliases in modules.conf (if config has changed) substInFile { - my ($type, $module, $module) = split(/\s+/, chomp_($_), 3); + my ($type, $module, $val) = split(/\s+/, chomp_($_), 3); if ($type eq 'post-install' && $module eq 'supermount') { #- remove the post-install supermount stuff. $_ = ''; @@ -309,7 +309,7 @@ sub write_conf() { s/snd-card/snd/g; s/snd-via686|snd-via8233/snd-via82xx/g; defined $conf{$module}{above} or $_ = ''; - } elsif ($conf{$module}{$type} && $conf{$module}{$type} ne $module) { + } elsif ($conf{$module}{$type} && $conf{$module}{$type} ne $val) { my $v = join(' ', uniq(deref($conf{$module}{$type}))); $_ = "$type $module $v\n"; } elsif ($type eq 'alias' && !defined $conf{$module}{alias}) { -- cgit v1.2.1