core.lua (6401094f6244088a9c71b15d1b77260eba374775) | core.lua (27fac8ff4c078b950b250ee2fbd7e5a0c3eed663) |
---|---|
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 --- 15 unchanged lines hidden (view full) --- 24-- SUCH DAMAGE. 25-- 26-- $FreeBSD$ 27-- 28 29local core = {}; 30 31-- Commonly appearing constants | 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 --- 15 unchanged lines hidden (view full) --- 24-- SUCH DAMAGE. 25-- 26-- $FreeBSD$ 27-- 28 29local core = {}; 30 31-- Commonly appearing constants |
32core.KEY_ENTER = 13 33core.KEY_BACKSPACE = 127 | 32core.KEY_ENTER = 13; 33core.KEY_BACKSPACE = 127; |
34 35function core.setVerbose(b) 36 if (b == nil) then 37 b = not core.verbose; 38 end 39 40 if (b == true) then 41 loader.setenv("boot_verbose", "YES"); --- 122 unchanged lines hidden (view full) --- 164 165 local m = loader.getenv("boot_multicons"); 166 if m ~= nil then 167 return true; 168 end 169 return false; 170end 171 | 34 35function core.setVerbose(b) 36 if (b == nil) then 37 b = not core.verbose; 38 end 39 40 if (b == true) then 41 loader.setenv("boot_verbose", "YES"); --- 122 unchanged lines hidden (view full) --- 164 165 local m = loader.getenv("boot_multicons"); 166 if m ~= nil then 167 return true; 168 end 169 return false; 170end 171 |
172core.acpi = core.getACPIPresent(false) | 172core.acpi = core.getACPIPresent(false); |
173return core | 173return core |