[syslinux] ifmem.c32

Pascal Bellard pascal.bellard at ads-lu.com
Sat Jul 25 08:40:18 PDT 2009


Hello,

This module can be used to select the files to boot according to the
memory size:
http://hg.slitaz.org/wok/raw-file/tip/syslinux/stuff/extra/ifmem.c

Usage:
  kernel ifmem.c32
  append Size1InKB Label1 [Size2InKB Label2]... LabelDefault

label1
  kernel vmlinuz
  ...

Does:
if (memory > Size1InKB) goto Label1
else if (memory > Size2InKB) goto Label2
...
else goto LabelDefault

Slitaz webboot (http://boot.slitaz.org/) uses it in the main configuration
files: http://mirror.slitaz.org/pxe/pxelinux.cfg/default

Thanks,

-pascal







More information about the Syslinux mailing list