wok diff memtest/receipt @ rev 20210
syslinux: remove memtest & ipxe entries
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Feb 24 11:14:17 2018 +0100 (2018-02-24) |
parents | f5fed8df2464 |
children | 0686e05d4ad3 |
line diff
1.1 --- a/memtest/receipt Tue Aug 29 20:35:56 2017 +0200 1.2 +++ b/memtest/receipt Sat Feb 24 11:14:17 2018 +0100 1.3 @@ -45,5 +45,16 @@ 1.4 mkdir -p $fs/boot $install/usr/share/doc 1.5 cp $src/README* $install/usr/share/doc 1.6 cp $src/FAQ $install/usr/share/doc 1.7 - cp $src/memtest.packed $fs/boot/memtest 1.8 + cp $src/memtest.packed $fs/boot/memtest.exe 1.9 } 1.10 + 1.11 +# Pre and post install commands for Tazpkg. 1.12 +post_install() 1.13 +{ 1.14 + [ -s $1/boot/isolinux/isolinux.cfg ] && 1.15 + ! grep -qs 'Check memory' $1/boot/isolinux/isolinux.cfg && sed -i \ 1.16 +'s|LABEL md5|LABEL memtest mem ram\ 1.17 + MENU LABEL Check memory\ 1.18 + KERNEL /boot/memtest.exe\ 1.19 +\n&|' $1/boot/isolinux/isolinux.cfg 1.20 +}