wok diff syslinux/stuff/iso2exe/taziso @ rev 19324
syslinux: adjust custom conf location
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Jul 14 10:28:07 2016 +0200 (2016-07-14) |
parents | 3432c28d8372 |
children | 31e215a4b9bb |
line diff
1.1 --- a/syslinux/stuff/iso2exe/taziso Thu Jul 14 10:16:48 2016 +0200 1.2 +++ b/syslinux/stuff/iso2exe/taziso Thu Jul 14 10:28:07 2016 +0200 1.3 @@ -854,12 +854,13 @@ 1.4 1.5 customsector() 1.6 { 1.7 - echo $(($(get 32848 "$ISO" 4)+16)) 1.8 + local c=$(echo $(get 32848 "$ISO" 4)) 1.9 + hascustomconf $(($c+16)) && echo $(($c+16)) || echo $c 1.10 } 1.11 1.12 hascustomconf() 1.13 { 1.14 - [ "$(ddq bs=2k skip=$(customsector) if="$ISO" | ddq bs=1 count=6)" \ 1.15 + [ "$(ddq bs=2k skip=${1:-$(customsector)} if="$ISO" | ddq bs=1 count=6)" \ 1.16 == "#!boot" ] 1.17 } 1.18