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

Bug#2994: "rmmod" doesn't return bad status on failure

Package: modules
Version: 1.3.69f-2
Maintainer: Michael Meskes <meskes@informatik.rwth-aachen.de>

As you can see in the typescript below, the "rmmod" program returns 0
when it fails to remove a module. "modprobe -r" returns -1, but does not
print the error message. I would like to have one command that I could
use in the "modconf" script that returns bad status if removal fails
_and_ prints the error message.



Script started on Tue May 14 09:59:12 1996
# lsmod
Module:        #pages:  Used by:
ppp                5	1
slhc               2	[ppp]	1
# rmmod ppp
ppp: Device or resource busy
# echo $status
# modprobe -r ppp
# echo $status

Reply to: