functions/losetup.sh: use SECTORS as variable name to reflect the real usage

This commit is contained in:
Otavio Salvador 2008-03-10 21:10:59 -03:00
parent a955c29e10
commit 3289907307
1 changed files with 2 additions and 2 deletions

View File

@ -27,8 +27,8 @@ Losetup ()
${LH_ROOT_COMMAND} ${LH_LOSETUP} "${DEVICE}" "${FILE}"
else
CYLINDERS="$(echo "$FDISK_OUT" | sed -ne "s|^$LOOPDEVICE[ *]*\([0-9]*\).*|\1|p")"
OFFSET="$(expr ${CYLINDERS} '*' 512)"
SECTORS="$(echo "$FDISK_OUT" | sed -ne "s|^$LOOPDEVICE[ *]*\([0-9]*\).*|\1|p")"
OFFSET="$(expr ${SECTORS} '*' 512)"
Echo_message "Mounting ${DEVICE} with offset ${OFFSET}"