Displaying 2 results from an estimated 2 matches for "luaopen_dmi".
2008 Dec 10
0
[PATCH 2/2] COM32: lua - add dmi library
...i.supported(): returns true if DMI is supported
dmi.gettable(): returns array of key, value pairs containing system info
Sorry, but this patch does not apply cleanly if [PATCH 1/2] was applied
before. There's just one line to fix in com32/lua/src/linit.c however:
" {LUA_DMILIBNAME, luaopen_dmi},"
Usage example:
if (dmi.supported()) then
dmitable = dmi.gettable()
for k,v in pairs(dmitable) do
print(k, v)
end
print(dmitable["system.manufacturer"])
print(dmitable["system.product_name"])
print(dmitable["bios.bios_revision"])
if ( strin...
2013 Oct 15
23
[PATCH 00/21] Upgrade to Lua 5.2.2, add filesystem module and get_key binding
Hi,
This series targets automatic boot menu generation, but most of it
is the Lua upgrade, because I got tired reading deprecated API docs.
It's mostly a straightforward forward port of the earlier Syslinux
specific changes to Lua 5.1, except that:
* I chose the add a stub getenv() implementation to the COM32 API
instead of #ifdefing out all the references in Lua, and
* I kept oslib