Added support for shutdown
This commit is contained in:
parent
2bcbbaafd2
commit
ed0d28ab1c
3 changed files with 5 additions and 2 deletions
|
@ -26,6 +26,9 @@ class WallabyControl(Routing.ClientRoute):
|
|||
os.system("reboot")
|
||||
exit(0)
|
||||
|
||||
def shutdown(self, handler):
|
||||
os.system("shutdown -h 0")
|
||||
|
||||
def disconnect(self, handler):
|
||||
handler.sock.close()
|
||||
|
||||
|
|
Reference in a new issue