summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-05-23 18:26:06 +0000
committerThierry Vignaud <tv@mageia.org>2012-05-23 18:26:06 +0000
commit9f7dd370f0b2b3a3523ff425b4273ea2db5270da (patch)
tree776a29572ecf30d6810ecf259d109777cdc5318a
parentf992f6afa6f884a65c52de6304b48fdebce88e24 (diff)
downloaddrakx-9f7dd370f0b2b3a3523ff425b4273ea2db5270da.tar
drakx-9f7dd370f0b2b3a3523ff425b4273ea2db5270da.tar.gz
drakx-9f7dd370f0b2b3a3523ff425b4273ea2db5270da.tar.bz2
drakx-9f7dd370f0b2b3a3523ff425b4273ea2db5270da.tar.xz
drakx-9f7dd370f0b2b3a3523ff425b4273ea2db5270da.zip
explain
-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});
}