octacian ca6beff464
Move clear, shutdown, and reboot to OS
* Add `system.shutdown()`
* Add `system.reboot()`
* Add `clear` command
* Add `shutdown [-r]` command
2018-11-24 22:45:30 -08:00

13 lines
181 B
Lua

local option = ...
option = option[1]
if option then
if option == "-r" then
system.reboot()
else
print("Invalid option (see help shutdown)")
end
else
system.shutdown()
end