4 if [ "$pkg" = "" -o ! -e "$pkg" ]; then
5 echo "no package supplied" 1>&2
10 o
=`expr $leadsize + 8`
11 set `od -j $o -N 8 -t u1 $pkg`
12 il
=`expr 256 \* \( 256 \* \( 256 \* $2 + $3 \) + $4 \) + $5`
13 dl
=`expr 256 \* \( 256 \* \( 256 \* $6 + $7 \) + $8 \) + $9`
14 # echo "sig il: $il dl: $dl"
16 sigsize
=`expr 8 + 16 \* $il + $dl`
17 o
=`expr $o + $sigsize + \( 8 - \( $sigsize \% 8 \) \) \% 8 + 8`
18 set `od -j $o -N 8 -t u1 $pkg`
19 il
=`expr 256 \* \( 256 \* \( 256 \* $2 + $3 \) + $4 \) + $5`
20 dl
=`expr 256 \* \( 256 \* \( 256 \* $6 + $7 \) + $8 \) + $9`
21 # echo "hdr il: $il dl: $dl"
23 hdrsize
=`expr 8 + 16 \* $il + $dl`
24 o
=`expr $o + $hdrsize`
26 dd if=$pkg ibs
=$o skip
=1 2>/dev
/null