diff options
author | Otavio Salvador <otavio@ossystems.com.br> | 2008-03-10 21:10:59 -0300 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 19:01:48 +0100 |
commit | 48a2346ab090a6bea0fbb7707a79349d0dbe0372 (patch) | |
tree | c6fcdae918ab78b492e7ecedd9ff5a2d158da091 | |
parent | bacd270f71658b5f60936e763740bee2117866cb (diff) | |
download | live-build-48a2346ab090a6bea0fbb7707a79349d0dbe0372.zip live-build-48a2346ab090a6bea0fbb7707a79349d0dbe0372.tar.gz |
functions/losetup.sh: use SECTORS as variable name to reflect the real usage
-rwxr-xr-x | functions/losetup.sh | 4 |
1 files 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}" |