diff options
Diffstat (limited to 'contrib/syslinux-4.02/com32/lua/test/dmi.lua')
-rw-r--r-- | contrib/syslinux-4.02/com32/lua/test/dmi.lua | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/contrib/syslinux-4.02/com32/lua/test/dmi.lua b/contrib/syslinux-4.02/com32/lua/test/dmi.lua new file mode 100644 index 0000000..0f5526c --- /dev/null +++ b/contrib/syslinux-4.02/com32/lua/test/dmi.lua @@ -0,0 +1,21 @@ +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"], "ESPRIMO P7935") ) then + print("Matches") + syslinux.run_command("memdisk initrd=/dos/BIOS/FSC-P7935-108.img raw") + else + print("Does not match") + end + +end + |