Displaying 1 result from an estimated 1 matches for "path_manufactur".
Did you mean:
path_manufacturer
2010 Aug 28
0
LUA script to emulate PXE boot on USB
...laced with _
-- (shell equivalent : touch `dmidecocde -s system-serial | tr -d " " | tr / _` )
--
path = "syslinux.cfg"
path_uuid = path .. "/uuid"
path_serial = path .. "/serial-number"
path_product = path .. "/product-name"
path_manufacturer = path .. "/manufacturer"
-- Verify if file exist
function exists(n)
local f=io.open(n)
if f then
io.close(f)
end
return f
end
-- Suppress spaces (bug : lua does not support spaces in filenames)
-- Replace / (directory delimiter)
-- (shell equivalent : touch `dmidecocde...