Adding upstream version 4.01+dfsg.
[syslinux-debian/hramrach.git] / com32 / lua / test / dmi.lua
blob0f5526c7e0ce4da134a2777565579703c0220d01
1 if (dmi.supported()) then
3 dmitable = dmi.gettable()
5 for k,v in pairs(dmitable) do
6 print(k, v)
7 end
9 print(dmitable["system.manufacturer"])
10 print(dmitable["system.product_name"])
11 print(dmitable["bios.bios_revision"])
13 if ( string.match(dmitable["system.product_name"], "ESPRIMO P7935") ) then
14 print("Matches")
15 syslinux.run_command("memdisk initrd=/dos/BIOS/FSC-P7935-108.img raw")
16 else
17 print("Does not match")
18 end
20 end