diff options
author | ramon <ramongomez@us.es> | 2012-04-27 08:36:01 +0000 |
---|---|---|
committer | ramon <ramongomez@us.es> | 2012-04-27 08:36:01 +0000 |
commit | 62777700aaed829606baac38dc1e722beca89bb5 (patch) | |
tree | b99a5b54d582da1a4f53ea7f074eb3134ba4da9b | |
parent | 377a3abc4e5fbcd26eb872875871ff5175ecf612 (diff) |
Versión 1.0.4, #530: Corregida errata para eliminar el fichero {{{hiberfil.sys}}} en función {{{ogReduceFs}}}.
git-svn-id: https://opengnsys.es/svn/branches/version1.0@2991 a21b9725-9963-47de-94b9-378ad31fedc9
-rwxr-xr-x | client/engine/FileSystem.lib | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/client/engine/FileSystem.lib b/client/engine/FileSystem.lib index 1af06de8..14f6e684 100755 --- a/client/engine/FileSystem.lib +++ b/client/engine/FileSystem.lib @@ -673,18 +673,18 @@ case "$(ogGetFsType $1 $2)" in # ;; NTFS|HNTFS) ogDeleteFile $1 $2 pagefile.sys - ogDeleteFile $1 $2 hiberfile.sys + ogDeleteFile $1 $2 hiberfil.sys ogUnmount $1 $2 2>/dev/null ## NTFS: Obtiene tamaño mínimo en MB. #SIZE=$(ntfsresize -fi $PART | awk '/resize at/ {print int($8*1.1)}') #ntfsresize -fns "${SIZE}M" $PART >/dev/null || ogRaiseError $OG_ERR_PARTITION "$1,$2" || return $? #ntfsresize -fs "${SIZE}M" $PART <<<"y" >/dev/null || ogRaiseError $OG_ERR_PARTITION "$1,$2" || return $? - SIZE=$(ogReduceFsCheck $1 $2) - [ "$SIZE" == 0 ] && return 1 + SIZE=$(ogReduceFsCheck $1 $2) + [ "$SIZE" == 0 ] && return 1 ntfsresize -fs "${SIZE}M" $PART <<<"y" || ogRaiseError $OG_ERR_PARTITION "error reduciendo $1,$2" || return $? - ;; + ;; *) ogRaiseError $OG_ERR_PARTITION "$1,$2" - return $? ;; + return $? ;; esac ogGetFsSize $1 $2 } |