[PATCH] Fix modprobe status reported v3

Denys Vlasenko vda.linux at googlemail.com
Sun Jul 5 20:55:01 UTC 2009


On Thursday 18 June 2009 16:51, Gilles Espinasse wrote:
> I have tried with master tree at 14f6f0a... fsync
> The only case I find wrong is with foo alias existing and trying to unload
> foo (does not exist, not loaded)
> echo "alias foo bar" >>/lib/modules/`uname -r`/modules.alias
> modprobe -r foo;echo $?
> That should report 0 without a message
> Instead we have an error status and this message
> modprobe : module bar not found in modules.dep

I do not see it on m-i-t 3.4

If alias resolves to existing module and it is not loaded,
"modprobe -r alias" exits 0. If alias resolves to a module
which itself does not exist (not mentioned in modules.dep),
then it compalins and exits 1.

We do the same.

Correct me if I'm wrong.
--
vda


More information about the busybox mailing list