From fe38dbcbe8854d0d696942de3327b3acf7789815 Mon Sep 17 00:00:00 2001 From: Mauro Carvalho Chehab Date: Tue, 13 Jun 2006 20:31:50 -0300 Subject: rmmod syntax works only on newer mod-utils packages From: Mauro Carvalho Chehab rmmod doesn't work with rmmod version 3.2.2. This patch uses rmmod instead. This should work with older mod-utils. Signed-off-by: Mauro Carvalho Chehab --- v4l/scripts/rmmod.pl | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'v4l') 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"; } } } -- cgit v1.2.3