wok diff BootProg/stuff/bootprog.sh @ rev 25616

Add emu2
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Aug 26 15:51:29 2023 +0000 (14 months ago)
parents 2155b2665e26
children 82a123e54615
line diff
     1.1 --- a/BootProg/stuff/bootprog.sh	Tue Nov 01 16:13:12 2022 +0000
     1.2 +++ b/BootProg/stuff/bootprog.sh	Sat Aug 26 15:51:29 2023 +0000
     1.3 @@ -19,15 +19,15 @@
     1.4  	esac | $w=499 count=11
     1.5  	case "$f" in
     1.6  	*32)	$w=$(($(od -An -j50 -N2 -d $1)<<9)) if=$1 count=$s;;
     1.7 -	E*)	$r=11 bs=1b | od -vAn -tu1 -w1 - | LANG=C awk 'BEGIN { a=0;i=-1;m=0xFFFFFFFE }
     1.8 -{ if (++i!=106 && i!=107 && i!=112) a=or(and(lshift(a,31),m),and(rshift(a,1),m/2))+$1 }
     1.9 +	E*)	$r=11 bs=1b | od -vAn -tu1 -w1 - | LANG=C awk '
    1.10 +{ if (++i!=107 && i!=108 && i!=113) a=or(lshift(and(a,1),31),$1+a/2) }
    1.11  END { b=a/256;c=b/256; for (;i>0;i-=44) printf "%c%c%c%c",a%256,b%256,c%256,(c/256)%256 }' | $w=5632
    1.12  	esac
    1.13  	exit 0
    1.14  done<<S 2>/dev/null
    1.15  54	59	0	512	FAT12
    1.16 -54	59	0	512	FAT16
    1.17 -3	113	512	512	EXFAT
    1.18 -82	87	1024	FAT32SZ	FAT32
    1.19 +54	59	512	512	FAT16
    1.20 +3	113	1024	512	EXFAT
    1.21 +82	87	1536	FAT32SZ	FAT32
    1.22  S
    1.23  exit 1