Merge commit 'refs/top-bases/linux-user-util' into linux-user-util
This commit is contained in:
commit
09fa5102df
|
@ -168,8 +168,10 @@ unload_modules() {
|
||||||
|
|
||||||
for MOD in ${MODULES_REVERSE[*]}; do
|
for MOD in ${MODULES_REVERSE[*]}; do
|
||||||
local NAME=`basename ${MOD} .ko`
|
local NAME=`basename ${MOD} .ko`
|
||||||
|
local USE_COUNT=`${LSMOD} |
|
||||||
|
egrep "^${NAME} "| ${AWK} '{print $3}'`
|
||||||
|
|
||||||
if ${LSMOD} | egrep -q "^${NAME}"; then
|
if [ "${USE_COUNT}" = 0 ] ; then
|
||||||
|
|
||||||
if [ "${DUMP_LOG}" -a ${NAME} = "spl" ]; then
|
if [ "${DUMP_LOG}" -a ${NAME} = "spl" ]; then
|
||||||
spl_dump_log
|
spl_dump_log
|
||||||
|
|
Loading…
Reference in New Issue