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

cpige: add man page for cook.slitaz.org
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Feb 13 16:56:42 2019 +0100 (23 months ago)
parents a9c77509261e
children 01b30edcef4e
line diff
     1.1 --- a/syslinux/stuff/iso2exe/iso2exe.sh	Fri Feb 08 19:28:56 2019 +0100
     1.2 +++ b/syslinux/stuff/iso2exe/iso2exe.sh	Wed Feb 13 16:56:42 2019 +0100
     1.3 @@ -47,7 +47,7 @@
     1.4  add_dosexe()
     1.5  {
     1.6  	TMP=/tmp/bootiso$$
     1.7 -	$0 --get bootiso.bin > $TMP 2> /dev/null 
     1.8 +	$0 --get bootiso.bin > $TMP 2> /dev/null
     1.9  	OFS=$(($(get 20 $TMP) - 0xC0))
    1.10  	printf "Adding DOS/EXE stub at %04X (%d bytes) ...\n" $OFS $((0x7FF0 - $OFS))
    1.11  	ddq if=$TMP bs=1 skip=$OFS of=$1 seek=$OFS conv=notrunc
    1.12 @@ -307,7 +307,7 @@
    1.13  	cp -a /dev/tty /dev/tty0 $TMP/dev
    1.14  	cat init > $TMP/init.exe
    1.15  	find $TMP -type f -print0 | xargs -0 chmod +x
    1.16 -	find $TMP -print0 | xargs -0 touch -t 197001010100.00 
    1.17 +	find $TMP -print0 | xargs -0 touch -t 197001010100.00
    1.18  	( cd $TMP; find dev init.exe | cpio -o -H newc ) | compress rootfs.gz
    1.19  	rm -rf $TMP
    1.20  	ls -l $@ rootfs.gz
    1.21 @@ -611,7 +611,7 @@
    1.22  		if [ $newsz -gt $isosz ]; then
    1.23  			echo "$(($newsz - $isosz)) extra bytes."
    1.24  		else
    1.25 -			echo "$(($isosz - 2048*$(get 32848 $1 4) 
    1.26 +			echo "$(($isosz - 2048*$(get 32848 $1 4)
    1.27  				 - $(stat -c %s $DATA) - 24)) bytes free."
    1.28  		fi
    1.29  		rm -f $DATA > /dev/null