Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local keypressed = nil
- repeat
- msg, data = n:GetInput(500)
- if (msg == RC['red']) then
- os.execute("cp /boot/STARTUP_1 /boot/STARTUP")
- keypressed = true
- end
- if (msg == RC['green']) then
- os.execute("cp /boot/STARTUP_2 /boot/STARTUP")
- keypressed = true
- end
- if (msg == RC['yellow']) then
- os.execute("cp /boot/STARTUP_3 /boot/STARTUP")
- keypressed = true
- end
- if (msg == RC['blue']) then
- os.execute("cp /boot/STARTUP_4 /boot/STARTUP")
- keypressed = true
- end
- until msg == RC['home'] or keypressed
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement