core.lua (e07fc39c144831bb898110e2f423b346ee5e5983) core.lua (5c1b51658125f5a9bf94179f89a9f24bc7761311)
1--
2-- Copyright (c) 2015 Pedro Souza <pedrosouza@freebsd.org>
3-- All rights reserved.
4--
5-- Redistribution and use in source and binary forms, with or without
6-- modification, are permitted provided that the following conditions
7-- are met:
8-- 1. Redistributions of source code must retain the above copyright

--- 203 unchanged lines hidden (view full) ---

212
213 local m = loader.getenv("boot_multicons");
214 if (m ~= nil) then
215 return true;
216 end
217 return false;
218end
219
1--
2-- Copyright (c) 2015 Pedro Souza <pedrosouza@freebsd.org>
3-- All rights reserved.
4--
5-- Redistribution and use in source and binary forms, with or without
6-- modification, are permitted provided that the following conditions
7-- are met:
8-- 1. Redistributions of source code must retain the above copyright

--- 203 unchanged lines hidden (view full) ---

212
213 local m = loader.getenv("boot_multicons");
214 if (m ~= nil) then
215 return true;
216 end
217 return false;
218end
219
220-- This may be a better candidate for a 'utility' module.
221function core.shallowCopyTable(tbl)
222 local new_tbl = {};
223 for k, v in pairs(tbl) do
224 if (type(v) == "table") then
225 new_tbl[k] = core.shallowCopyTable(v);
226 else
227 new_tbl[k] = v;
228 end
229 end
230 return new_tbl;
231end
232
220core.setACPI(core.getACPIPresent(false));
221return core;
233core.setACPI(core.getACPIPresent(false));
234return core;