wok diff BootProg/receipt @ rev 25857
Fix reset menu.xml symlink when upgrade slitaz-configs
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Thu Aug 07 17:10:52 2025 +0000 (4 weeks ago) |
parents | 82a123e54615 |
children |
line diff
1.1 --- a/BootProg/receipt Sun May 26 08:12:35 2024 +0000 1.2 +++ b/BootProg/receipt Thu Aug 07 17:10:52 2025 +0000 1.3 @@ -12,7 +12,7 @@ 1.4 1.5 bootprog_data() 1.6 { 1.7 - sed "1,2d;s|FAT32SZ|$(stat -c %s boot32.bin)|" $stuff/bootprog.sh 1.8 + sed "1,2d;s|FAT32SZ|$(stat -c %s boot32.bin)|" bootprog.sh 1.9 cat ${1// /.bin }.bin 1.10 } 1.11 1.12 @@ -28,11 +28,13 @@ 1.13 for i in $bs ; do 1.14 nasm $i.asm -f bin -o $i.bin -l $i.lst || return 1 1.15 done 1.16 - sed '1,2!d' $stuff/bootprog.sh > bootprog.lzma 1.17 - bootprog_data "$bs" | xz -z --format=lzma --lzma1=lc=0,pb=0,nice=33,dict=4k >> bootprog.lzma 1.18 + fna=$((0x$(awk '/times Name/{print $2}' bootex.lst))) 1.19 + sed "s|499 count=11;;|$fna count=$((510-$fna));;|" $stuff/bootprog.sh > bootprog.sh 1.20 + sed '1,2!d' bootprog.sh > bootprog.lzma 1.21 + bootprog_data "$bs" | xz -z --format=lzma --lzma1=lc=0,pb=0,nice=60,dict=4k >> bootprog.lzma 1.22 bootprog_data "$bs" | gzip -9 > bootprog.gz 1.23 advdef -z4 -i 1200 bootprog.gz 1.24 - sed '1,2!d;s|unlzma|zcat|' $stuff/bootprog.sh | cat - bootprog.gz > bootprog.gzip 1.25 + sed '1,2!d;s|unlzma|zcat|' bootprog.sh | cat - bootprog.gz > bootprog.gzip 1.26 rm bootprog.gz 1.27 chmod +x bootprog.lzma bootprog.gzip 1.28 }