diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2003-03-13 16:43:27 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2003-03-13 16:43:27 +0000 |
commit | ef91324415641b11c05174926642dd5b7d8d049d (patch) | |
tree | c35702b92735855b3974f31c92a73279b4fafe59 /perl-install | |
parent | 38caf98d16dd96088cf64894c3cb8dfb92095116 (diff) | |
download | drakx-ef91324415641b11c05174926642dd5b7d8d049d.tar drakx-ef91324415641b11c05174926642dd5b7d8d049d.tar.gz drakx-ef91324415641b11c05174926642dd5b7d8d049d.tar.bz2 drakx-ef91324415641b11c05174926642dd5b7d8d049d.tar.xz drakx-ef91324415641b11c05174926642dd5b7d8d049d.zip |
convert alsa driver from old naming system to new one (snd-card-XXX =>
snd-XXX) and ensure correct upgrade for snd-via683 and snd-via8233
drivers
Diffstat (limited to 'perl-install')
-rw-r--r-- | perl-install/modules.pm | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/perl-install/modules.pm b/perl-install/modules.pm index 4cbb3a222..ac36482d5 100644 --- a/perl-install/modules.pm +++ b/perl-install/modules.pm @@ -219,6 +219,18 @@ sub read_conf { push @{$c{$name}{probeall} ||= []}, delete $c{$alias}{alias}; } } + # Convert alsa driver from old naming system to new one (snd-card-XXX => snd-XXX) + foreach my $alias (sort keys %c) { + if ($c{$alias}{alias} =~ /^snd-card/) { + my $new_driver = $c{$alias}{alias}; + $new_driver =~ s/^snd-card/snd/; + $c{$alias}{alias} = $new_driver; + } + } + # Ensure correct upgrade for snd-via683 and snd-via8233 drivers + foreach my $alias (sort keys %c) { + $c{$alias}{alias} = 'snd-via82xx' if $c{$alias}{alias} =~ /^snd-via686|^snd-via8233/; + } \%c; } @@ -248,6 +260,11 @@ sub write_conf { } elsif ($type eq 'alias' && $alias =~ /scsi_hostadapter|usb-interface/) { #- remove old aliases which are replaced by probeall $_ = ''; + } elsif ($type eq 'above') { + # Convert alsa driver from old naming system to new one (snd-card-XXX => snd-XXX) + # Ensure correct upgrade for snd-via683 and snd-via8233 drivers + s/snd-card/snd/g; + s/snd-via(686|8233)/snd-via82xx/g; } elsif ($conf{$alias}{$type} && $conf{$alias}{$type} ne $module) { my $v = join(' ', uniq(deref($conf{$alias}{$type}))); $_ = "$type $alias $v\n"; |