Guest User

example.lua

a guest
Oct 23rd, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.35 KB | None | 0 0
  1. local count = 0
  2.  
  3. function start(msg)
  4.   print("This script displays a welcome message and counts the number " ..
  5.   "of times it has been called. The welcome message can be set in the " ..
  6.   "config file /etc/rc.cfg")
  7.   print(args)
  8.   if msg then
  9.     print(msg)
  10.   end
  11.   print(count)
  12.   print("runlevel: " .. require("computer").runlevel())
  13.   count = count + 1
  14. end
Add Comment
Please, Sign In to add comment