Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -----------------------------------------------
- --DISPLAY LAMP FIRMWARE UPDATER STARTUP PASTEBIN: UHu7h5em
- -----------------------------------------------
- --test key
- function TestKey()
- while true do
- local event, scancode = os.pullEvent("key")
- print(tostring(scancode).." was pressed.")
- end
- end
- -----------------------------------------------
- --update
- function Update()
- if fs.exists("startup2") == true then
- --fs.delete(startup2)
- end
- --load startup2 from the web
- --shell.run("pastebin get NkzsSg1M startup2")
- end
- -----------------------------------------------
- --start program
- while true do
- print("Starting program STARTUP...")
- if message == "up" then
- Update()
- end
- shell.run("startup2")
- print("Stoping program STARTUP...")
- end
- -----------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement