wok-current diff syslinux/stuff/iso2exe/taziso @ 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 | 4c62635505df |
children | aece1721c14f |
line diff
1.1 --- a/syslinux/stuff/iso2exe/taziso Sun Apr 12 12:35:21 2015 +0200 1.2 +++ b/syslinux/stuff/iso2exe/taziso Sun Apr 12 14:55:37 2015 +0200 1.3 @@ -978,6 +978,38 @@ 1.4 gotcdfile '?pxe' && dokexec 1.5 } 1.6 1.7 +flavdata() 1.8 +{ 1.9 + dd if=$ISO bs=512 skip=$((1+$(get 417 $ISO 1))) count=20 2>/dev/null | \ 1.10 + 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" ] && menuitem "$@" 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 + if [ "$1" ]; then 1.30 + cat $file 1.31 + else 1.32 + $DIALOG --clear \ 1.33 + --title " Flavor infos " \ 1.34 + --textbox $file 24 78 1.35 + fi 1.36 + rm -rf /tmp/data 1.37 +} 1.38 + 1.39 quit() 1.40 { 1.41 umount -d /media/cdrom 1.42 @@ -1022,6 +1054,7 @@ 1.43 $(gotposixovlzip "insttaz2zip" "ZIP installation archive (TAZUSB way)") \ 1.44 $(xfile tazusb "usbkey" "USB key read/write installation") \ 1.45 $(ishybrid "usbbootkey" "USB boot key (read only)") \ 1.46 +$(hasflavinfo "showfavinfo" "Show flavor extra infos") \ 1.47 $(menuitem "tazboot" "Get tazboot.exe Linux loader") \ 1.48 $(cdexe boot/bzImage "bzimage" "Get linux DOS/EXE file") \ 1.49 $(cdexe 'memtest*' "memtest" "Get Memtest86 DOS/EXE file") \