tazlito rev 506
uefi/startup.nsh: hide search loop
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed May 30 15:51:10 2018 +0200 (2018-05-30) |
parents | 674d4b42127b |
children | 035c08dd4580 |
files | tazlito |
line diff
1.1 --- a/tazlito Wed May 30 12:08:11 2018 +0200 1.2 +++ b/tazlito Wed May 30 15:51:10 2018 +0200 1.3 @@ -487,14 +487,17 @@ 1.4 efilinux="/EFI/BOOT/$(basename $1).efi" 1.5 sed 's|/|\\|g' >> $basedir/efi/boot/startup.nsh <<EOT 1.6 # start tazlito $efilinux 1.7 +@echo -off 1.8 set -v num 0 1.9 for %i run (1 20) 1.10 if exist FS%num%:$efilinux then 1.11 + echo -on 1.12 FS%num%: 1.13 $efilinux rw root=0x100 autologin\ 1.14 $( ( cd $basedir/efi/boot ; ls -r rootfs*gz ) | while read f ; do \ 1.15 [ "$efifile" == "bootx64.efi" -a -s $basedir/efi/boot/${f}64 ] && \ 1.16 f=${f}64; echo -n " initrd=/EFI/BOOT/$f";done) 1.17 + @echo -off 1.18 endif 1.19 set -v num %i 1.20 endfor