summaryrefslogtreecommitdiff
path: root/v4l/scripts/rmmod.pl
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2006-06-13 20:31:50 -0300
committerMauro Carvalho Chehab <mchehab@infradead.org>2006-06-13 20:31:50 -0300
commitfe38dbcbe8854d0d696942de3327b3acf7789815 (patch)
tree619b1528ceef349061e19b2b75b0ae9b12c6dfcd /v4l/scripts/rmmod.pl
parentda4bf4260d1fe9964768ced721f2cbcb8c740850 (diff)
downloadmediapointer-dvb-s2-fe38dbcbe8854d0d696942de3327b3acf7789815.tar.gz
mediapointer-dvb-s2-fe38dbcbe8854d0d696942de3327b3acf7789815.tar.bz2
rmmod syntax works only on newer mod-utils packages
From: Mauro Carvalho Chehab <mchehab@infradead.org> rmmod <file> doesn't work with rmmod version 3.2.2. This patch uses rmmod <module> instead. This should work with older mod-utils. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
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";
}
}
}