diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2004-03-17 09:25:16 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2004-03-17 09:25:16 +0000 |
commit | 3a035c0e1ab53ef2e5558e9ffd0460d9ae09fe08 (patch) | |
tree | 5310c88c38ca6851d30dc3e2d695136c277baa2d /perl-install/standalone/harddrake2 | |
parent | 494f147be1e4d47d2d8f59a245726435dc7117e2 (diff) | |
download | drakx-backup-do-not-use-3a035c0e1ab53ef2e5558e9ffd0460d9ae09fe08.tar drakx-backup-do-not-use-3a035c0e1ab53ef2e5558e9ffd0460d9ae09fe08.tar.gz drakx-backup-do-not-use-3a035c0e1ab53ef2e5558e9ffd0460d9ae09fe08.tar.bz2 drakx-backup-do-not-use-3a035c0e1ab53ef2e5558e9ffd0460d9ae09fe08.tar.xz drakx-backup-do-not-use-3a035c0e1ab53ef2e5558e9ffd0460d9ae09fe08.zip |
show module for system bridges if it's not unknown (aka not managed by
kernel core)
Diffstat (limited to 'perl-install/standalone/harddrake2')
-rwxr-xr-x | perl-install/standalone/harddrake2 | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/perl-install/standalone/harddrake2 b/perl-install/standalone/harddrake2 index ae9f6d96c..6e0c0dbe9 100755 --- a/perl-install/standalone/harddrake2 +++ b/perl-install/standalone/harddrake2 @@ -271,7 +271,8 @@ foreach (@classes) { my $i = $_; $_->{bus_id} = join ':', map { if_($i->{$_} ne "65535", sprintf("%lx", $i->{$_})) } qw(vendor id subvendor subid); $_->{bus_location} = join ':', map { sprintf("%lx", $i->{$_}) } qw(pci_bus pci_device pci_function); - delete $_->{driver} if $Ident =~ /^ATA_STORAGE|BRIDGE|SMB_CONTROLLER$/ || $_->{description} =~ /3Com.*5610/; + # do not display unknown driver for system bridges that're managed by kernel core: + delete $_->{driver} if $_->{driver} eq "unknown" && ($Ident =~ /^ATA_STORAGE|BRIDGE|SMB_CONTROLLER$/ || $_->{description} =~ /3Com.*5610/); } # split description into manufacturer/description ($_->{Vendor}, $_->{description}) = split(/\|/, $_->{description}) if $_->{description}; |