Displaying 1 result from an estimated 1 matches for "path_serial".
2010 Aug 28
0
LUA script to emulate PXE boot on USB
...'default' one
--
-- Warning : Due to lua limitation, filenames must have no space, and / must be replaced 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 d...