summaryrefslogtreecommitdiffstats
path: root/rescue/drvinst
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-05-23 18:26:16 +0000
committerThierry Vignaud <tv@mageia.org>2012-05-23 18:26:16 +0000
commitaf9725f61ff86333b9d8adde19cc562b7a633aa6 (patch)
tree987d90f242f522436a56e9911ad711b3a7a86c01 /rescue/drvinst
parent48c9f04a8233ce03157e4486cbd05c975627ded5 (diff)
downloaddrakx-af9725f61ff86333b9d8adde19cc562b7a633aa6.tar
drakx-af9725f61ff86333b9d8adde19cc562b7a633aa6.tar.gz
drakx-af9725f61ff86333b9d8adde19cc562b7a633aa6.tar.bz2
drakx-af9725f61ff86333b9d8adde19cc562b7a633aa6.tar.xz
drakx-af9725f61ff86333b9d8adde19cc562b7a633aa6.zip
(install_module) merge install_module_raw() in it
Diffstat (limited to 'rescue/drvinst')
-rwxr-xr-xrescue/drvinst7
1 files changed, 1 insertions, 6 deletions
diff --git a/rescue/drvinst b/rescue/drvinst
index 8395bfce4..4868b42e0 100755
--- a/rescue/drvinst
+++ b/rescue/drvinst
@@ -19,17 +19,12 @@ use detect_devices;
$ARGV[0] =~ /^--?h/ and die "usage: drivers_install [drivertype1 [drivertype2 ...]]\n";
my @types = @ARGV;
-sub install_module_raw {
+sub install_module {
my ($driver, $descr) = @_;
print STDERR qq(Installing driver $driver (for "$descr")\n);
system("/sbin/modprobe", $driver) and print "\tfailed\n";
}
-sub install_module {
- my ($driver, $descr) = @_;
- install_module_raw($driver, $descr);
-}
-
#- start
foreach my $card (detect_devices::pci_probe()) {
# ignoring "unknown", "Card:foobar" and the like as well as video cards: