transition tot kernel
This commit is contained in:
@@ -1,16 +1,13 @@
|
||||
local kernel = _G.kernel
|
||||
local multishell = _ENV.multishell
|
||||
|
||||
_G.network = { }
|
||||
|
||||
kernel.hook('device_attach', function(_, eventData)
|
||||
if eventData[1] == 'wireless_modem' then
|
||||
local s, m = multishell.openTab({
|
||||
local routine = kernel.newRoutine({
|
||||
path = 'sys/services/network.lua',
|
||||
hidden = true
|
||||
})
|
||||
if not s and m then
|
||||
debug(m)
|
||||
end
|
||||
kernel.run(routine)
|
||||
end
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user