Re: Bug#576894: modprobe -r should print and return an error value just like rmmod

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 9.4.2010 06:33, jidanni@xxxxxxxxxxx wrote:
> Jon, I just want to make -r act more like one expects.
> 
> Do make it return an error (shell $?) as you don't document that it will not return
> an error, and one would expect it should. Or at -r you could document
> that no error will be returned, for some strange reason or not to break
> bad scripts or something.

modprobe -r <module> behaves analogically to modprobe <module>: If the
kernel is already in the desired state, nothing is printed and modprobe
exits successfully. If you want it to return an error in such case, use
the --first-time option.

Michal
--
To unsubscribe from this list: send the line "unsubscribe linux-modules" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux