wok-current diff syslinux/stuff/iso2exe/init @ rev 16022
syslinux/iso2exe: add zimage support
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Mar 06 19:57:41 2014 +0000 (2014-03-06) |
parents | 82c793b0a850 |
children | d814ca840c3c |
line diff
1.1 --- a/syslinux/stuff/iso2exe/init Tue Mar 04 21:08:01 2014 +0000 1.2 +++ b/syslinux/stuff/iso2exe/init Thu Mar 06 19:57:41 2014 +0000 1.3 @@ -348,6 +348,12 @@ 1.4 [ -s /media/cdrom/$1 ] && echo -en "\"$2\" \"$3\"" 1.5 } 1.6 1.7 +cdexe() 1.8 +{ 1.9 + [ $(get 0 /media/cdrom/$1 2> /dev/null || echo 0) -ne 23117 ] && 1.10 + echo -en "\"$2\" \"$3\"" 1.11 +} 1.12 + 1.13 fddata() 1.14 { 1.15 [ $(get 28 /mnt/$ISO 1 2> /dev/null || echo 0) -ne 0 ] && 1.16 @@ -537,11 +543,11 @@ 1.17 "usbbootkey" "USB boot key (read only)" \ 1.18 $(fddata "fdbootstrap" "Floppy bootstrap") \ 1.19 "tazboot" "Get tazboot.exe Linux loader" \ 1.20 -$(cdfile boot/memtest "memtest" "Get Memtest86") \ 1.21 +$(cdexe boot/memtest "memtest" "Get Memtest86") \ 1.22 $(cdfile boot/memtest "fdmemtest" "Create a Memtest86 boot floppy") \ 1.23 -$(cdfile Xboot/gpxe "pxe" "Get SliTaz Web boot utility") \ 1.24 +$(cdexe boot/gpxe "pxe" "Get SliTaz Web boot utility") \ 1.25 $(cdfile boot/gpxe "fdpxe" "Create a SliTaz Web boot floppy") \ 1.26 -$(cdfile boot/ipxe "pxe" "Get SliTaz Web boot utility") \ 1.27 +$(cdexe boot/ipxe "pxe" "Get SliTaz Web boot utility") \ 1.28 $(cdfile boot/ipxe "fdpxe" "Create a SliTaz Web boot floppy") \ 1.29 $(xfile reboot "restart" "Restart the computer") \ 1.30 $(xfile poweroff "stop" "Power off") \