wok diff linld/stuff/tobzimage @ rev 21154

updated libcap-ng and libcap-ng-dev (0.6.6 -> 0.7.9)
author Hans-G?nter Theisgen
date Sat Mar 30 15:28:23 2019 +0100 (2019-03-30)
parents 1c8a113c536a
children
line diff
     1.1 --- a/linld/stuff/tobzimage	Sun Jun 12 15:34:09 2016 +0200
     1.2 +++ b/linld/stuff/tobzimage	Sat Mar 30 15:28:23 2019 +0100
     1.3 @@ -40,7 +40,7 @@
     1.4  create_bzImage()
     1.5  {
     1.6  	ddq bs=512 count=1 of=$1
     1.7 -	[ " $(get 0x1E6 $1 4)" == " 1397443653" ] && iselks=1
     1.8 +	[ "$(od -j 486 $1 -An -N 4 -a|sed 's/ //g')" == "ELKS" ] && iselks=1
     1.9  	[ " $(get 0x3F $1 2)" == " 15080" ] && islinux001=1 && cp $1 $1$$
    1.10  	# from http://hg.slitaz.org/wok/file/7184ec55b1aa/linux/stuff/linux-header.u
    1.11  	uudecode <<EOT | ddq of=$1 conv=notrunc
    1.12 @@ -75,6 +75,12 @@
    1.13  		rm -f $1$$
    1.14  	else
    1.15  		ddq bs=512 count=$setupsz >> $1
    1.16 +		if [ "$(od -j 1026 $1 -An -N 4 -a|sed 's/ //g')" == "HdrS" ] &&
    1.17 +		   [ $(($(get 1041 $1 1) & 1)) -eq 1 ]; then
    1.18 +			echo "Already a bzImage file, abort."
    1.19 +			rm -f $1
    1.20 +			exit 1
    1.21 +		fi
    1.22  	fi
    1.23  	store 8 497 $(($setupsz+1)) $1
    1.24  	syssz=$(get 500 $1 2)