* Add `system.shutdown()` * Add `system.reboot()` * Add `clear` command * Add `shutdown [-r]` command
13 lines
181 B
Lua
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
|