Hi, I have been experimenting a bit with lua.c32 and I have created a small lua.c32 wiki page at: http://syslinux.zytor.com/wiki/index.php/Lua.c32 With my minimal knowledge about Lua (and the inconvenience of not being able to copy&paste or edit scripts) I discovered that the dmi module has 2 functions (supported, gettable) and a syslinux module with 1 function (run_command). Do we have some information available about these functions ? And what is planned for Lua in the future, I haven't seen this discussed here ? What could be useful is: - a way to find the boot-method (and device/name) (syslinux.bootloader, syslinux.bootdevice) - a way to query syslinux information (syslinux.version, syslinux.api) - a way to provide syslinux a generated .cfg (syslinux.load()) - a way to query for pci device (and match pci.ids or modules.list) - a way to query other hardware info - an implementation of the os module, now one cannot exit lacking os.exit() - the dmi module could export its information as module variables, rather than a function that exports a table For the current functionality I'd like to include some examples on the Wiki page. -- -- dag wieers, dag at wieers.com, http://dag.wieers.com/ -- [Any errors in spelling, tact or fact are transmission errors]
On Mon, Aug 9, 2010 at 11:25 AM, Dag Wieers <dag at wieers.com> wrote:> Hi, > > I have been experimenting a bit with lua.c32 and I have created a small > lua.c32 wiki page at: > > http://syslinux.zytor.com/wiki/index.php/Lua.c32 > > With my minimal knowledge about Lua (and the inconvenience of not being > able to copy&paste or edit scripts) I discovered that the dmi module has 2 > functions (supported, gettable) and a syslinux module with 1 function > (run_command). > >Thanks! I've been wanting try this myself and this page speeds things up me and others I'm sure. -- Kevin Landreth
On Mon, 9 Aug 2010, Dag Wieers wrote:> I have been experimenting a bit with lua.c32 and I have created a small > lua.c32 wiki page at: > > http://syslinux.zytor.com/wiki/index.php/Lua.c32 > > With my minimal knowledge about Lua (and the inconvenience of not being able > to copy&paste or edit scripts) I discovered that the dmi module has 2 > functions (supported, gettable) and a syslinux module with 1 function > (run_command). > > Do we have some information available about these functions ? And what is > planned for Lua in the future, I haven't seen this discussed here ? > > What could be useful is: > > - a way to find the boot-method (and device/name) (syslinux.bootloader, > syslinux.bootdevice) > > - a way to query syslinux information (syslinux.version, syslinux.api) > > - a way to provide syslinux a generated .cfg (syslinux.load()) > > - a way to query for pci device (and match pci.ids or modules.list) > > - a way to query other hardware info > > - an implementation of the os module, now one cannot exit lacking > os.exit() > > - the dmi module could export its information as module variables, rather > than a function that exports a table > > For the current functionality I'd like to include some examples on the Wiki > page.Before you react, please not that the above was based on lua.c32 from 4.01 and not 4.02, sigh. So I will be updating the Wiki page on 4.02 and will get back to you shortly ;-) -- -- dag wieers, dag at wieers.com, http://dag.wieers.com/ -- [Any errors in spelling, tact or fact are transmission errors]
Am 09.08.2010 18:25, schrieb Dag Wieers:> Hi, > > I have been experimenting a bit with lua.c32 and I have created a > small lua.c32 wiki page at: > > http://syslinux.zytor.com/wiki/index.php/Lua.c32 > > With my minimal knowledge about Lua (and the inconvenience of not > being able to copy&paste or edit scripts) I discovered that the dmi > module has 2 functions (supported, gettable) and a syslinux module > with 1 function (run_command).Did you take a look at com32/lua/doc/syslinux.asc? I tried to document the (very basic) functions calls there, including some examples.> Do we have some information available about these functions ? And what > is planned for Lua in the future, I haven't seen this discussed here ? > > What could be useful is: > > - a way to find the boot-method (and device/name) (syslinux.bootloader, > syslinux.bootdevice) > > - a way to query syslinux information (syslinux.version, syslinux.api) > > - a way to provide syslinux a generated .cfg (syslinux.load()) > > - a way to query for pci device (and match pci.ids or modules.list) > > - a way to query other hardware info > > - an implementation of the os module, now one cannot exit lacking > os.exit() > > - the dmi module could export its information as module variables, > rather > than a function that exports a tableIf someone can point me to the corresponding com32 code, I'll do my best to add some more lua bindings - but this could take some time, due to the lack of spare time, sorry.> > For the current functionality I'd like to include some examples on the > Wiki page. >Bye, Marcel
Maybe Matching Threads
- Building a http query string including SMBIOS Serial Number to load a specific kernel
- Lua.c32 - user input / scripting
- VPD information, macros and syslinux
- localboot.lua: a lua.c32 script that uses DMI data to decide between localboot/chainloading
- pxelinux 6.03 lua module not loading syslinux.c32 dmi.c32 etc