Added the native syslinux functions config_file(), ipappend_strs(), and reboot()...
authorHung-chi Lihn <hlihn@google.com>
Sat, 22 Sep 2012 16:23:38 +0000 (18:23 +0200)
committerErwan Velu <erwanaliasr1@gmail.com>
Sat, 22 Sep 2012 16:23:38 +0000 (18:23 +0200)
commit280a43d406e02b1e8439e90eedb65379847c7df9
tree42768f0a4456beae8dd3a4a9cccd712bdefef536
parenta634ca1454ee70e115f0a0a319f3e02f273381e8
Added the native syslinux functions config_file(), ipappend_strs(), and reboot() to Lua.c32. This allows the Lua script to query the config file name and the ipappend strings (pxelinux only), as well as to perform reboot (warm and cold) to the system.

In Lua.c32, the extension will be used as the following:
  1. syslinux.config_file() will return the config file string.
  2. syslinux.ipappend_strs() will return a table of IPAPPEND strings with numerical indices.
  3. syslinux.reboot() will perform cold reboot, while syslinux.reboot(1) will perform warm reboot.

Signed-off-by: Hung-chi Lihn <hlihn@google.com>
Signed-off-by: Erwan Velu <erwanaliasr1@gmail.com>
com32/lua/src/syslinux.c