summaryrefslogtreecommitdiffstats
path: root/client/engine/FileSystem.lib
diff options
context:
space:
mode:
Diffstat (limited to 'client/engine/FileSystem.lib')
-rwxr-xr-xclient/engine/FileSystem.lib5
1 files changed, 3 insertions, 2 deletions
diff --git a/client/engine/FileSystem.lib b/client/engine/FileSystem.lib
index 257c5a23..73fd44bc 100755
--- a/client/engine/FileSystem.lib
+++ b/client/engine/FileSystem.lib
@@ -468,7 +468,7 @@ findmnt -n -o TARGET $PART
function ogIsFormated ()
{
# Variables locales
-local DISK
+local PART
if [ "$*" == "help" ]; then
ogHelp "$FUNCNAME" "$FUNCNAME int_ndisk int_nfilesys" \
"if $FUNCNAME 1 1; then ... ; fi"
@@ -476,8 +476,9 @@ if [ "$*" == "help" ]; then
fi
# Falso, en caso de error.
[ $# == 2 ] || return 1
+PART="$(ogDiskToDev $1 $2 2>/dev/null)" || return 1
-test -n "$(ogMount "$1" "$2" 2>/dev/null)"
+test -n "$(blkid -s TYPE $PART | egrep -vi "swap|_member")"
}