diff options
Diffstat (limited to 'client/engine/Image.lib')
-rwxr-xr-x | client/engine/Image.lib | 10 |
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" ;; *) |