diff options
author | ramon <ramongomez@us.es> | 2016-06-09 08:09:08 +0000 |
---|---|---|
committer | ramon <ramongomez@us.es> | 2016-06-09 08:09:08 +0000 |
commit | df35dea19980ad913b9d443a0afbd7229f40ef30 (patch) | |
tree | 5bb991d87b381ed3dcf9884690d733fcb72bac03 /client/engine/Disk.lib | |
parent | 9e4fa8ed28b1c5c1083a82179f8d6b24571fa9cb (diff) |
#724: Corregir errata en revisión r4943 al detectar último sector del disco.
git-svn-id: https://opengnsys.es/svn/branches/version1.1@4961 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'client/engine/Disk.lib')
-rwxr-xr-x | client/engine/Disk.lib | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client/engine/Disk.lib b/client/engine/Disk.lib index aa3f57f9..701a3c81 100755 --- a/client/engine/Disk.lib +++ b/client/engine/Disk.lib @@ -655,7 +655,7 @@ fi case $# in 1) # Para un disco. DISK=$(ogDiskToDev $1) || return $? - LASTSECTOR=$(hdparm -N $DISK | awk -F"[=/]" '/=/ {print $2}') + LASTSECTOR=$[$(hdparm -N $DISK | awk -F"[=/]" '/=/ {print $2}') - 1] ;; 2) # Para una partición. PART=$(ogDiskToDev $1 $2) || return $? |