Merge commit 'refs/top-bases/linux-zpios' into linux-zpios

This commit is contained in:
Brian Behlendorf 2010-07-17 16:05:01 -07:00
commit df51ecbf9b
1 changed files with 3 additions and 1 deletions

View File

@ -173,8 +173,10 @@ unload_modules() {
for MOD in ${MODULES_REVERSE[*]}; do
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
spl_dump_log