summaryrefslogtreecommitdiff
path: root/functions
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2008-03-10 21:10:59 -0300
committerOtavio Salvador <otavio@ossystems.com.br>2008-03-10 21:15:21 -0300
commit328990730716fd168c3866c868b8dcb073c60200 (patch)
treec6fcdae918ab78b492e7ecedd9ff5a2d158da091 /functions
parenta955c29e10bb6b5cacc0532028c212b55e0e8bde (diff)
downloadvyos-live-build-328990730716fd168c3866c868b8dcb073c60200.tar.gz
vyos-live-build-328990730716fd168c3866c868b8dcb073c60200.zip
functions/losetup.sh: use SECTORS as variable name to reflect the real usage
Diffstat (limited to 'functions')
-rwxr-xr-xfunctions/losetup.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/functions/losetup.sh b/functions/losetup.sh
index a3bd8ba4d..d95608618 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}"