diff options
author | Thierry Vignaud <tv@mageia.org> | 2013-03-06 22:50:52 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2013-03-06 22:50:52 +0000 |
commit | 093af5d3e2028fa3f4d8ceb961e3e460a01cfe74 (patch) | |
tree | 1fe2854c54db34f6c92860fafeb7c56bafc32678 /rescue/tree/sbin | |
parent | 238640510041cdb65801e362775aa0478ac82a28 (diff) | |
download | drakx-093af5d3e2028fa3f4d8ceb961e3e460a01cfe74.tar drakx-093af5d3e2028fa3f4d8ceb961e3e460a01cfe74.tar.gz drakx-093af5d3e2028fa3f4d8ceb961e3e460a01cfe74.tar.bz2 drakx-093af5d3e2028fa3f4d8ceb961e3e460a01cfe74.tar.xz drakx-093af5d3e2028fa3f4d8ceb961e3e460a01cfe74.zip |
use kmod's modprobe, thus fixing loading modules (mga#9270)
(it's free, just a symlink on kmod)
Diffstat (limited to 'rescue/tree/sbin')
-rwxr-xr-x | rescue/tree/sbin/modprobe | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/rescue/tree/sbin/modprobe b/rescue/tree/sbin/modprobe deleted file mode 100755 index 704ee6b0f..000000000 --- a/rescue/tree/sbin/modprobe +++ /dev/null @@ -1,18 +0,0 @@ -#!/usr/bin/perl - -use lib qw(/usr/lib/libDrakX); -use list_modules; -use modules; - -# based on install::commands -sub modprobe { - !@_ || $_[0] =~ /^-?-h/ and die "usage: modprobe <module> [<options...>]\n"; - my $name; - # kernel calls us with modprobe -q -- <module>, so ignore options - do { $name = shift } while substr($name, 0, 1) eq "-"; - list_modules::load_default_moddeps(); - modules::load_with_options([ $name ], { $name => join(' ', @_) }); -} - -$::isInstall = 1; -modprobe(@ARGV); |