summaryrefslogtreecommitdiffstats
path: root/src/ogProcess.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/ogProcess.py')
-rw-r--r--src/ogProcess.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ogProcess.py b/src/ogProcess.py
index 35abb89..ff78f34 100644
--- a/src/ogProcess.py
+++ b/src/ogProcess.py
@@ -11,6 +11,14 @@ class ogProcess():
def processOperation(self, op, URI):
if ("poweroff" in URI):
self.process_poweroff()
+ elif ("reboot" in URI):
+ self.process_reboot()
+
+ def process_reboot(self):
+ # Rebooting thread
+ def rebt():
+ ogOperations.reboot()
+ threading.Thread(target=rebt).start()
def process_poweroff(self):
# Powering off thread