neonucleus/data/OpenOS/etc/rc.d/example.lua
IonutParau 687cfebd00 testing version of LuaBIOS and OpenOS
people were having issues getting them to work so now we promote consistency
2025-06-28 20:41:49 +02:00

15 lines
360 B
Lua

local count = 0
function start(msg)
print("This script displays a welcome message and counts the number " ..
"of times it has been called. The welcome message can be set in the " ..
"config file /etc/rc.cfg")
print(args)
if msg then
print(msg)
end
print(count)
print("runlevel: " .. require("computer").runlevel())
count = count + 1
end