forgot to commit openos
This commit is contained in:
14
data/openos/etc/rc.d/example.lua
Normal file
14
data/openos/etc/rc.d/example.lua
Normal file
@@ -0,0 +1,14 @@
|
||||
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
|
||||
Reference in New Issue
Block a user