wok-current rev 19433
syslinux/taziso: parse 64bit kernels
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Oct 02 15:40:25 2016 +0200 (2016-10-02) |
parents | 77dec4337e5c |
children | 3ee81b3a3fba |
files | syslinux/stuff/iso2exe/taziso |
line diff
1.1 --- a/syslinux/stuff/iso2exe/taziso Sun Oct 02 15:02:56 2016 +0200 1.2 +++ b/syslinux/stuff/iso2exe/taziso Sun Oct 02 15:40:25 2016 +0200 1.3 @@ -1209,7 +1209,8 @@ 1.4 [ -z "$KERNEL" ] && echo "Can't parse isolinux.cfg" && return 1.5 for i in $media/$KERNEL $(dirname $file)/$KERNEL $media/$(locase $KERNEL) \ 1.6 $(dirname $file)/$(locase $KERNEL); do 1.7 - [ -s $i ] && KERNEL=$i && break 1.8 + i="$(ls $i* | sed q)" 1.9 + [ -n "$i" ] && KERNEL=$i && break 1.10 done 1.11 rm -f /tmp/var$$ 1.12 [ $(get 514 $KERNEL 4) -eq 1400005704 ] || return 1.13 @@ -1239,7 +1240,8 @@ 1.14 for i in ${INITRD//,/ }; do 1.15 for j in $media/$i $(dirname $KERNEL)/$i $media/$(locase $i) \ 1.16 $(dirname $KERNEL)/$(locase $i); do 1.17 - [ -s $j ] && i=$j && break 1.18 + j="$(ls $j* | sed q)" 1.19 + [ -n "$j" ] && i=$j && break 1.20 done 1.21 ddq if=$i >> /tmp/fd$$ 1.22 l=$(($l+$(stat -c %s $i)))