mirror of
https://git.shadowkat.net/izaya/OC-PsychOS2.git
synced 2024-11-22 20:10:34 -05:00
19 lines
400 B
Lua
19 lines
400 B
Lua
local delay = 60
|
|
local port = 3442
|
|
local message = "WoLBeacon"
|
|
|
|
for modem in component.list("modem") do
|
|
component.invoke(modem,"setWakeMessage",message)
|
|
end
|
|
|
|
local ltime = computer.uptime()
|
|
while true do
|
|
if computer.uptime() > ltime+delay then
|
|
for modem in component.list("modem") do
|
|
component.invoke(modem,"broadcast",port,message)
|
|
end
|
|
ltime=computer.uptime()
|
|
end
|
|
coroutine.yield()
|
|
end
|