summaryrefslogtreecommitdiffstats
path: root/rescue
diff options
context:
space:
mode:
Diffstat (limited to 'rescue')
-rwxr-xr-xrescue/drvinst2
1 files changed, 2 insertions, 0 deletions
diff --git a/rescue/drvinst b/rescue/drvinst
index ca9b807cd..158566d0d 100755
--- a/rescue/drvinst
+++ b/rescue/drvinst
@@ -38,9 +38,11 @@ sub install_module {
#- start
foreach my $card (detect_devices::pci_probe()) {
+ # ignoring "unknown", "Card:foobar" and the like as well as video cards:
$card->{driver} eq 'unknown' || $card->{driver} =~ /:/ and next;
$card->{media_type} eq "DISPLAY_VGA" and next;
+ # load drivers for selected categories or for everything if no args:
if (!@ARGV || find { $card->{media_type} =~ /$_/i } @types) {
install_module($card->{driver}, $card->{description});
}