transition to kernel
This commit is contained in:
11
sys/extensions/3.network.lua
Normal file
11
sys/extensions/3.network.lua
Normal file
@@ -0,0 +1,11 @@
|
||||
local kernel = _G.kernel
|
||||
|
||||
kernel.hook('device_attach', function(_, eventData)
|
||||
if eventData[1] == 'wireless_modem' then
|
||||
kernel.run({
|
||||
title = 'Net daemon',
|
||||
path = 'sys/extensions/netdaemon.lua',
|
||||
hidden = true,
|
||||
})
|
||||
end
|
||||
end)
|
||||
Reference in New Issue
Block a user