Displaying 4 results from an estimated 4 matches for "dmitabl".
Did you mean:
dmitable
2008 Dec 10
0
[PATCH 2/2] COM32: lua - add dmi library
...eturns 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 ( string.match(dmitable["system.product_name"], "ESPRI...
2010 Aug 28
0
LUA script to emulate PXE boot on USB
...es not support spaces in filenames)
-- Replace / (directory delimiter)
-- (shell equivalent : touch `dmidecocde -s system-serial | tr -d " " | tr / _` )
function cleanup(s)
return s:gsub("%s", ""):gsub("/", "_")
end
if (dmi.supported()) then
dmitable = dmi.gettable()
manufacturer = cleanup(dmitable["system.manufacturer"])
product = cleanup(dmitable["system.product_name"])
serial = cleanup(dmitable["system.serial"])
uuid = cleanup(dmitable["system.uuid"])
print("DMI inf...
2012 Sep 19
1
[PATCH 1/1] lua: Cleaned up the dmi table structure in Lua.c32 and added all missing DMI subtables
...e(L);
-
- if ( ! dmi_iterate(&dmi) ) {
- printf("No DMI Structure found\n");
- return -1;
+ if (get_table_fn(L, dmi_ptr)) { /* only adding it when it is there */
+ lua_pushstring(L, table_name);
+ lua_insert(L, -2);
+ lua_settable(L,-3);
}
+}
- parse_dmitable(&dmi);
-
- /* bios */
- lua_pushstring(L, "bios.vendor");
- lua_pushstring(L, dmi.bios.vendor);
- lua_settable(L,-3);
-
- lua_pushstring(L, "bios.version");
- lua_pushstring(L, dmi.bios.version);
- lua_settable(L,-3);
-
- lua_pushstring(L, "bios.release_date&qu...
2014 Sep 25
1
localboot.lua: a lua.c32 script that uses DMI data to decide between localboot/chainloading
Hi,
we use PXELINUX in our product to show a boot menu on client computers,
with options like "Boot from local hard disk", "Install Windows", etc.
Unfortunately, a lot of computers seem to have broken BIOSes and won't
boot with the LOCALBOOT command, and need to be booted with chain.c32
instead. We also have encountered some computers where it works only the
other way -