Ninjafix unbootable floppy

This commit is contained in:
Łukasz Magiera 2015-12-31 02:48:44 +01:00
parent ceb79a5baf
commit 7b69bf4cab
3 changed files with 14 additions and 11 deletions

View File

@ -1,5 +1,8 @@
local component = {} local rawComponent = kernel._K.component
component = {}
kernel.userspace.component = component kernel.userspace.component = component
kernel._K.component = component
kernelGroup = { kernelGroup = {
adding = {}, adding = {},
@ -17,7 +20,7 @@ end
component.doc = function(addr, method) component.doc = function(addr, method)
if allow(addr) then if allow(addr) then
return kernel._K.component.doc(addr, method) return rawComponent.doc(addr, method)
else else
error("no such component") error("no such component")
end end
@ -25,7 +28,7 @@ end
component.invoke = function(addr, ...) component.invoke = function(addr, ...)
if allow(addr) then if allow(addr) then
return kernel._K.component.invoke(addr, ...) return rawComponent.invoke(addr, ...)
else else
error("no such component") error("no such component")
end end
@ -33,7 +36,7 @@ end
component.list = function(filter, exact) component.list = function(filter, exact)
local list = {} local list = {}
for k, v in pairs(kernel._K.component.list(filter, not not exact)) do for k, v in pairs(rawComponent.list(filter, not not exact)) do
if allow(k) then if allow(k) then
list[k] = v list[k] = v
end end
@ -49,7 +52,7 @@ end
component.methods = function(addr) component.methods = function(addr)
if allow(addr) then if allow(addr) then
return kernel._K.component.methods(addr) return rawComponent.methods(addr)
else else
return nil, "no such component" return nil, "no such component"
end end
@ -57,7 +60,7 @@ end
component.fields = function(addr) component.fields = function(addr)
if allow(addr) then if allow(addr) then
return kernel._K.component.fields(addr) return rawComponent.fields(addr)
else else
return nil, "no such component" return nil, "no such component"
end end
@ -65,7 +68,7 @@ end
component.proxy = function(addr) component.proxy = function(addr)
if allow(addr) then if allow(addr) then
return kernel._K.component.proxy(addr) return rawComponent.proxy(addr)
else else
return nil, "no such component" return nil, "no such component"
end end
@ -73,7 +76,7 @@ end
component.type = function(addr) component.type = function(addr)
if allow(addr) then if allow(addr) then
return kernel._K.component.type(addr) return rawComponent.type(addr)
else else
return nil, "no such component" return nil, "no such component"
end end
@ -81,7 +84,7 @@ end
component.slot = function(addr) component.slot = function(addr)
if allow(addr) then if allow(addr) then
return kernel._K.component.slot(addr) return rawComponent.slot(addr)
else else
return nil, "no such component" return nil, "no such component"
end end

View File

@ -1 +1 @@
{database="/var/lib/mpt/base.db",cacheDir="/var/lib/mpt/cache/",frontend={mpt={api="http://mpt.magik6k.net/api/"}}} {database="/var/lib/mpt/base.db",frontend={mpt={api="http://mpt.magik6k.net/api/"}},cacheDir="/var/lib/mpt/cache/"}

File diff suppressed because one or more lines are too long