mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 21:05:08 +00:00
lualoader: config: fix module enabled check
A last minute rewrite left this logically wrong; if it's present in modules_blacklist, then we do not load it.
This commit is contained in:
parent
6f139d796f
commit
10aeb6cdab
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=368579
|
@ -718,7 +718,7 @@ function config.isModuleEnabled(modname)
|
|||
end
|
||||
|
||||
local blacklist = getBlacklist()
|
||||
return blacklist[modname]
|
||||
return not blacklist[modname]
|
||||
end
|
||||
|
||||
hook.registerType("config.loaded")
|
||||
|
|
Loading…
Reference in a new issue