Lines Matching defs:config
29 -- $FreeBSD: stable/11/stand/lua/config.lua 360596 2020-05-03 03:53:38Z kevans $
34 local config = {}
44 local MSG_FAILOPENCFG = "Failed to open config: '%s'"
45 local MSG_FAILREADCFG = "Failed to read config: '%s'"
46 local MSG_FAILPARSECFG = "Failed to parse config: '%s'"
66 -- details of the config module.
406 if not config.parse(text) then
427 config.verbose = false
430 function config.getCarouselIndex(id)
434 function config.setCarouselIndex(id, idx)
441 function config.processFile(name, silent)
451 return config.parse(text)
455 function config.parse(text)
491 function config.readConf(file, loaded_files)
510 if not config.processFile(file, true) then
520 config.readConf(name, loaded_files)
527 function config.loadKernel(other_kernel)
576 config.kernel_loaded = nil
601 config.kernel_loaded = kernel
615 config.kernel_loaded = kernel
624 function config.selectKernel(kernel)
625 config.kernel_selected = kernel
628 function config.load(file, reloading)
633 config.readConf(file)
638 config.verbose = verbose:lower() == "yes"
640 hook.runAll("config.loaded")
645 function config.reload(file)
648 config.load(file, true)
649 hook.runAll("config.reloaded")
652 function config.loadelf()
654 local kernel = config.kernel_selected or config.kernel_loaded
665 if not config.loadKernel(kernel) then
671 status = loadModule(modules, not config.verbose)
676 hook.registerType("config.loaded")
677 hook.registerType("config.reloaded")
680 return config