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._K.component = component
kernelGroup = {
adding = {},
@ -17,7 +20,7 @@ end
component.doc = function(addr, method)
if allow(addr) then
return kernel._K.component.doc(addr, method)
return rawComponent.doc(addr, method)
else
error("no such component")
end
@ -25,7 +28,7 @@ end
component.invoke = function(addr, ...)
if allow(addr) then
return kernel._K.component.invoke(addr, ...)
return rawComponent.invoke(addr, ...)
else
error("no such component")
end
@ -33,7 +36,7 @@ end
component.list = function(filter, exact)
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
list[k] = v
end
@ -49,7 +52,7 @@ end
component.methods = function(addr)
if allow(addr) then
return kernel._K.component.methods(addr)
return rawComponent.methods(addr)
else
return nil, "no such component"
end
@ -57,7 +60,7 @@ end
component.fields = function(addr)
if allow(addr) then
return kernel._K.component.fields(addr)
return rawComponent.fields(addr)
else
return nil, "no such component"
end
@ -65,7 +68,7 @@ end
component.proxy = function(addr)
if allow(addr) then
return kernel._K.component.proxy(addr)
return rawComponent.proxy(addr)
else
return nil, "no such component"
end
@ -73,7 +76,7 @@ end
component.type = function(addr)
if allow(addr) then
return kernel._K.component.type(addr)
return rawComponent.type(addr)
else
return nil, "no such component"
end
@ -81,7 +84,7 @@ end
component.slot = function(addr)
if allow(addr) then
return kernel._K.component.slot(addr)
return rawComponent.slot(addr)
else
return nil, "no such component"
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