wok diff syslinux/stuff/iso2exe/init @ rev 17931
syslinux/taziso: show flavor extra infos
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Apr 12 14:55:37 2015 +0200 (2015-04-12) |
parents | 9822e51d7c2e |
children | 5ca0054c3fba |
line diff
1.1 --- a/syslinux/stuff/iso2exe/init Wed Mar 25 12:48:09 2015 +0100 1.2 +++ b/syslinux/stuff/iso2exe/init Sun Apr 12 14:55:37 2015 +0200 1.3 @@ -902,6 +902,34 @@ 1.4 gotcdfile "?pxe" && dokexec 1.5 } 1.6 1.7 +flavdata() 1.8 +{ 1.9 + dd if=/mnt/$ISO bs=512 skip=$((1+$(get 417 /mnt/$ISO 1))) \ 1.10 + count=20 2>/dev/null | zcat 2>/dev/null 1.11 +} 1.12 + 1.13 +hasflavinfo() 1.14 +{ 1.15 + [ "$(flavdata | dd bs=1 count=8 2> /dev/null | strings)" == \ 1.16 + "07070100" ] && echo -en "\"$2\" \"$3\"" 1.17 +} 1.18 + 1.19 +showfavinfo() 1.20 +{ 1.21 + mkdir -p /tmp/data 1.22 + flavdata | ( cd /tmp/data ; cpio -i ) 1.23 + file=/tmp/data/info 1.24 + cat /tmp/data/*desc > $file 1.25 + for i in /tmp/data/*list* ; do 1.26 + echo "=== extra ${i#*list} files" 1.27 + cat $i 1.28 + done >> $file 1.29 + $DIALOG --clear \ 1.30 + --title " Flavor infos " \ 1.31 + --textbox $file 24 78 1.32 + rm -rf /tmp/data 1.33 +} 1.34 + 1.35 shell() 1.36 { 1.37 trap text 2 1.38 @@ -943,6 +971,7 @@ 1.39 $(gotposixovl "installtaz" "Hard disk installation (TAZUSB way)") \ 1.40 $(xfile tazusb "usbkey" "USB key read/write installation") \ 1.41 $(ishybrid "usbbootkey" "USB boot key (read only)") \ 1.42 +$(hasflavinfo "showfavinfo" "Show flavor extra infos") \ 1.43 $(fddata "fdbootstrap" "Create a floppy bootstrap") \ 1.44 "tazboot" "Get tazboot.exe Linux loader" \ 1.45 $(cdexe boot/bzImage "bzimage" "Get linux DOS/EXE file") \