From 9bb4fe29c32be5ff4060ecce6e0cbda34348fbd9 Mon Sep 17 00:00:00 2001 From: cvoges12 Date: Fri, 8 Oct 2021 05:05:37 +0000 Subject: [PATCH] LDA -> LBA b/c I'm dyslexic --- src/iso.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/iso.sh b/src/iso.sh index d2e1b55..6c4ae17 100755 --- a/src/iso.sh +++ b/src/iso.sh @@ -23,14 +23,14 @@ LOAD_SIZE="$(dumpet -i Win*.iso \ | grep -o "[^:]*$" \ | cut -d ' ' -f2 \ | head -1)" -LDA="$(dumpet -i Win*.iso \ - | grep "LDA" \ +LBA="$(dumpet -i Win*.iso \ + | grep "LBA" \ | tail -n 1 \ | awk '{printf $3}')" CDROM_SECTOR_SIZE=2048 FLOPPY_SECTOR_SIZE=512 -dd if=Win*.iso bs=${CDROM_SECTOR_SIZE} skip=${LDA} count=1 > win.dmp +dd if=Win*.iso bs=${CDROM_SECTOR_SIZE} skip=${LBA} count=1 > win.dmp FLOPPY_SECTORS="$(file win.dmp \ | sed -e "s/.*sectors\ //" \ | awk '{printf $1}')" @@ -42,7 +42,7 @@ CDROM_SECTORS=`expr $FLOPPY_SECTOR_SIZE \ dd \ if=Win*.iso \ bs=${CDROM_SECTOR_SIZE} \ - skip=${LDA} \ + skip=${LBA} \ count=${CDROM_SECTORS} \ of=win_efi_boot.img