Advertisement
svenhoefer

Untitled

Oct 6th, 2017
309
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.57 KB | None | 0 0
  1. local keypressed = nil
  2. repeat
  3.     msg, data = n:GetInput(500)
  4.     if (msg == RC['red']) then
  5.         os.execute("cp /boot/STARTUP_1 /boot/STARTUP")
  6.         keypressed = true
  7.     end
  8.     if (msg == RC['green']) then
  9.         os.execute("cp /boot/STARTUP_2 /boot/STARTUP")
  10.         keypressed = true
  11.     end
  12.     if (msg == RC['yellow']) then
  13.         os.execute("cp /boot/STARTUP_3 /boot/STARTUP")
  14.         keypressed = true
  15.     end
  16.     if (msg == RC['blue']) then
  17.         os.execute("cp /boot/STARTUP_4 /boot/STARTUP")
  18.         keypressed = true
  19.     end
  20. until msg == RC['home'] or keypressed
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement