From 48a2346ab090a6bea0fbb7707a79349d0dbe0372 Mon Sep 17 00:00:00 2001 From: Otavio Salvador Date: Mon, 10 Mar 2008 21:10:59 -0300 Subject: functions/losetup.sh: use SECTORS as variable name to reflect the real usage --- functions/losetup.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/functions/losetup.sh b/functions/losetup.sh index a3bd8ba..d956086 100755 --- a/functions/losetup.sh +++ b/functions/losetup.sh @@ -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}" -- cgit v1.0