wok rev 17636

syslinux-tools: add taziso (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Feb 14 20:57:25 2015 +0100 (2015-02-14)
parents 65c5ea249c9a
children 953935d518fb
files syslinux/stuff/iso2exe/taziso
line diff
     1.1 --- a/syslinux/stuff/iso2exe/taziso	Sat Feb 14 18:17:26 2015 +0100
     1.2 +++ b/syslinux/stuff/iso2exe/taziso	Sat Feb 14 20:57:25 2015 +0100
     1.3 @@ -365,7 +365,7 @@
     1.4  	$1 || return
     1.5  	wget -O $mnt/slitaz/boot/grldr http://mirror.slitaz.org/boot/grldr
     1.6  	readtazbootconf
     1.7 -	cat > $mnt/slitaz/menu.lst <<EOT
     1.8 +	cat > $mnt/slitaz/boot/menu.lst <<EOT
     1.9  title SliTaz
    1.10  	kernel $kernel $cmdline
    1.11  	initrd $initrd
    1.12 @@ -382,7 +382,8 @@
    1.13  memtest	MemTest
    1.14  pxe	Web boot
    1.15  EOT
    1.16 -	cat > $mnt/slitaz/install.txt <<EOT
    1.17 +	unix2dos $mnt/slitaz/boot/menu.lst
    1.18 +	unix2dos > $mnt/slitaz/boot/install.txt <<EOT
    1.19  For NT/2000/XP users:
    1.20  
    1.21  1- Move the files grldr and menu.lst into the root directory
    1.22 @@ -404,8 +405,10 @@
    1.23  
    1.24  See http://diddy.boot-land.net/grub4dos/files/README_GRUB4DOS.txt
    1.25  EOT
    1.26 -	( cd $mnt ; zip -r9 $(basename $ISO .iso) slitaz )
    1.27 +	( cd $mnt ; zip -r9 $(basename $ISO .iso).zip slitaz )
    1.28  	mv $mnt/*.zip .
    1.29 +	umount $mnt
    1.30 +	rm -rf $mnt
    1.31  }
    1.32  
    1.33  install()