diff options
Diffstat (limited to 'helpers/lh_losetup')
-rwxr-xr-x | helpers/lh_losetup | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/helpers/lh_losetup b/helpers/lh_losetup index e99f9e0..e2b3c0d 100755 --- a/helpers/lh_losetup +++ b/helpers/lh_losetup @@ -12,7 +12,7 @@ losetup -d "${DEVICE}" LOOPDEVICE="`echo ${DEVICE}p${PARTITION:=1}`" CYL="`echo ${FDISK_OUT} | sed -ne "s_^${LOOPDEVICE}[ *]*\([0-9]*\).*_\1_p" `" -#OFFSET="`expr ${CYL}*512`" +#OFFSET="`expr 512 '*' ${CYL}`" OFFSET="$((CYL*512))" echo loop $DEVICE at offset $OFFSET |