diff --git a/scripts/zfs.sh b/scripts/zfs.sh index c131429c91..2f5f3f8fdb 100755 --- a/scripts/zfs.sh +++ b/scripts/zfs.sh @@ -198,7 +198,7 @@ unload_modules_linux() { if [ "$USE_COUNT" = "0" ] ; then unload_module_linux "$KMOD" || return 1 - else + elif [ "$USE_COUNT" != "" ] ; then echo "Module ${NAME} is still in use!" return 1 fi