summaryrefslogtreecommitdiffstats
path: root/client/engine/Image.lib
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/engine/Image.lib
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/engine/Image.lib')
-rwxr-xr-xclient/engine/Image.lib10
1 files changed, 5 insertions, 5 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"
;;
*)