summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorramon <ramongomez@us.es>2017-05-16 15:16:15 +0000
committerramon <ramongomez@us.es>2017-05-16 15:16:15 +0000
commit5827bb9dd8b5adbdea697dfad8ff1267c3026bb1 (patch)
tree27af56534ee56d7740b1f48fed71e605c2e01b65 /client
parent82ed0eb49f51b8f6b011e7b621f7a121213c77b8 (diff)
#726 #740: Compatibilidad para restaurar con antiguas versiones de {{{partclone}}} y reducir errores de funciones {{{og...Syntax}}}.
git-svn-id: https://opengnsys.es/svn/branches/version1.1@5303 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'client')
-rwxr-xr-xclient/engine/Image.lib10
-rw-r--r--client/shared/etc/engine.cfg2
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.