summaryrefslogtreecommitdiffstats
path: root/rescue/tree/sbin/modprobe
diff options
context:
space:
mode:
Diffstat (limited to 'rescue/tree/sbin/modprobe')
-rwxr-xr-xrescue/tree/sbin/modprobe4
1 files changed, 3 insertions, 1 deletions
diff --git a/rescue/tree/sbin/modprobe b/rescue/tree/sbin/modprobe
index 811c75111..84de032e2 100755
--- a/rescue/tree/sbin/modprobe
+++ b/rescue/tree/sbin/modprobe
@@ -29,8 +29,10 @@ sub load {
system("packdrake -x /modules/modules.cz* /tmp $name.o");
-r "/tmp/$name.o" or die "can't find module $name\n";
- system("/sbin/insmod /tmp/$name.o"); $? and die("insmod $name failed");
+ system("/sbin/insmod /tmp/$name.o");
+ my $retval = $?;
system("rm /tmp/$name.o");
+ $retval and die("insmod $name failed");
}
!@ARGV || $ARGV[0] =~ /-h/ and die "usage: modprobe <module> [<options...>]\n";