summaryrefslogtreecommitdiff
path: root/v4l/scripts/rmmod.pl
diff options
context:
space:
mode:
Diffstat (limited to 'v4l/scripts/rmmod.pl')
-rwxr-xr-xv4l/scripts/rmmod.pl5
1 files changed, 2 insertions, 3 deletions
diff --git a/v4l/scripts/rmmod.pl b/v4l/scripts/rmmod.pl
index eb8f02d14..19a0a8c61 100755
--- a/v4l/scripts/rmmod.pl
+++ b/v4l/scripts/rmmod.pl
@@ -144,13 +144,12 @@ sub insmod ($)
sub rmmod ()
{
- my $cmd="rmmod";
while (my $key=pop @modlist) {
my $dep=$key;
$dep=~s/[\-]/_/g;
if (exists ($loaded{$dep})) {
- printf "$cmd ./$key.ko\n";
- system "$cmd ./$key.ko\n";
+ printf "rmmod $dep\n";
+ system "rmmod $dep\n";
}
}
}