diff options
-rwxr-xr-x | client/engine/Image.lib | 10 | ||||
-rw-r--r-- | client/shared/etc/engine.cfg | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/client/engine/Image.lib b/client/engine/Image.lib index 4afa0892..71c1e299 100755 --- a/client/engine/Image.lib +++ b/client/engine/Image.lib @@ -179,18 +179,18 @@ if [ "$#" -eq 4 ]; then #comprobar mbuffer which mbuffer > /dev/null && MBUFFER="| mbuffer -q -m 40M " || MBUFFER=" " - case "$TOOL" in - "ntfsclone" | "NTFSCLONE") + case "${TOOL,,}" in + ntfsclone) TOOL="| ntfsclone --restore-image --overwrite $PART -" ;; - "partimage"| "PARTIMAGE") + partimage) TOOL="| partimage -f3 -B gui=no restore $PART stdin" ;; - "partclone" | "PARTCLONE") + partclone*) # -C para que no compruebe tamaños TOOL="| partclone.restore -d0 -C -I -o $PART" ;; - partclone.dd) + dd) TOOL="| pv | dd conv=sync,noerror bs=1M of=$PART" ;; *) diff --git a/client/shared/etc/engine.cfg b/client/shared/etc/engine.cfg index 2407c6b6..d25d8154 100644 --- a/client/shared/etc/engine.cfg +++ b/client/shared/etc/engine.cfg @@ -44,7 +44,7 @@ OGSLEEP="20" INSTALLOSCLIENT=FALSE # Funciones que no deben mostrar salida de avisos si son llamadas por otras funciones. -NODEBUGFUNCTIONS="ogGetHivePath ogGetOsType ogUnmountAll ogUnmountCache" +NODEBUGFUNCTIONS="ogCreateImageSyntax ogGetHivePath ogGetOsType ogRestoreImageSyntax ogUnmountAll ogUnmountCache" # Velocidad de comunicación por defecto (muestra aviso en Browser si no se cumple): # "", no usar esta característica. |