tiny-slitaz rev 12
Add menu support
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Feb 07 15:48:52 2016 +0100 (2016-02-07) |
parents | 25fdf21e38d9 |
children | 70ba6d904230 |
files | helper |
line diff
1.1 --- a/helper Tue Jan 05 20:32:45 2016 +0100 1.2 +++ b/helper Sun Feb 07 15:48:52 2016 +0100 1.3 @@ -447,6 +447,24 @@ 1.4 cd $tmp 1.5 cp fs/boot/bzImage slitaz.img 1.6 sh fs/boot/bundle slitaz.img rootfs.gz 1.7 + if [ -s fs/boot/ipxe ] && [ -s fs/boot/memtest ] && 1.8 + [ $(du -c fs/boot/ipxe fs/boot/memtest slitaz.img | \ 1.9 + awk 'END { print $1 }') -lt 1440 ]; then 1.10 + sh fs/boot/bundle out " SliTaz boot menu" slitaz.img \ 1.11 + "Tiny SliTaz" fs/boot/ipxe "SliTaz web boot" \ 1.12 + fs/boot/memtest "Check memory" 1.13 + mv -f out slitaz.img 1.14 + elif [ -s fs/boot/ipxe ] && [ $(du -c fs/boot/ipxe slitaz.img | \ 1.15 + awk 'END { print $1 }') -lt 1440 ]; then 1.16 + sh fs/boot/bundle out " SliTaz boot menu" slitaz.img \ 1.17 + "Tiny SliTaz" fs/boot/ipxe "SliTaz web boot" 1.18 + mv -f out slitaz.img 1.19 + elif [ -s fs/boot/memtest ] && [ $(du -c fs/boot/memtest slitaz.img | \ 1.20 + awk 'END { print $1 }') -lt 1440 ]; then 1.21 + sh fs/boot/bundle out " SliTaz boot menu" slitaz.img \ 1.22 + "Tiny SliTaz" fs/boot/memtest "Check memory" 1.23 + mv -f out slitaz.img 1.24 + fi 1.25 [ $(stat -c %s slitaz.img) -lt 1474560 ] && 1.26 dd of=slitaz.img bs=18k seek=80 count=0 2> /dev/null 1.27 fi