wok diff syslinux/stuff/iso2exe/iso2exe.sh @ rev 24504

updated dwm (6.0 -> 6.3)
author Hans-G?nter Theisgen
date Sun Feb 20 11:26:24 2022 +0100 (2022-02-20)
parents 4e9f81882cd3
children 2a12b1c5e240
line diff
     1.1 --- a/syslinux/stuff/iso2exe/iso2exe.sh	Sat Jan 01 11:57:50 2022 +0000
     1.2 +++ b/syslinux/stuff/iso2exe/iso2exe.sh	Sun Feb 20 11:26:24 2022 +0100
     1.3 @@ -68,13 +68,18 @@
     1.4  	[ $(get 0 $2) -eq 35615 ] || return
     1.5  	zcat $2 | compress /tmp/rezipped$$.gz
     1.6  	n=$(stat -c %s /tmp/rezipped$$.gz)
     1.7 -	printf "Moving tazlito data record at %04X ($n bytes) ...\n" $OFS
     1.8 -	ddn if=/tmp/rezipped$$.gz bs=1 of=$1 seek=$OFS
     1.9 -	HOLE=$((HOLE+n))
    1.10 +	if [ $(get 2048 $1) -eq 19792 -a $n -lt 412 ]; then	### Apple partitions
    1.11 +		o=$((0x1200-n))
    1.12 +	else
    1.13 +		o=$OFS
    1.14 +		HOLE=$((HOLE+n))
    1.15 +	fi
    1.16 +	printf "Moving tazlito data record at %04X ($n bytes) ...\n" $o
    1.17 +	ddn if=/tmp/rezipped$$.gz bs=1 of=$1 seek=$o
    1.18  	rm -f /tmp/rezipped$$.gz
    1.19  	if [ -n "$gpt" ]; then
    1.20  		store $((0x25E)) $n $1
    1.21 -		store $((0x25C)) $OFS $1
    1.22 +		store $((0x25C)) $o $1
    1.23  	fi
    1.24  }
    1.25  
    1.26 @@ -239,7 +244,7 @@
    1.27  				$(get $((446+4+16*i)) "$1" 1)
    1.28  		done
    1.29  		if [ $(get 450 "$1") -eq 65262 ]; then
    1.30 -			echo "EFI partitions :"
    1.31 +			echo "EFI partitions :"	### https://en.wikipedia.org/wiki/GUID_Partition_Table
    1.32  			n=$(get 592 "$1")
    1.33  			s=$(get 596 "$1")
    1.34  			o=$(($(get 584 "$1")*512))
    1.35 @@ -258,7 +263,7 @@
    1.36  	fi
    1.37  	o=2048
    1.38  	if [ $(get $o "$1") -eq 19792 ]; then
    1.39 -		echo "Apple partitions :"
    1.40 +		echo "Apple partitions :"	### https://en.wikipedia.org/wiki/Apple_Partition_Map
    1.41  		i=0
    1.42  		while [ $(get $o "$1") -eq 19792 ]; do
    1.43  			f=$((0x$(od -An -N 4 -j $((o+8)) -t x1 "$1" | sed 's/ //g')))