Added support for shutdown

This commit is contained in:
Philip Trauner 2016-02-20 10:49:13 +01:00
parent 2bcbbaafd2
commit ed0d28ab1c
3 changed files with 5 additions and 2 deletions

View file

@ -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()