summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/linux/ogOperations.py3
-rw-r--r--src/ogProcess.py8
2 files changed, 11 insertions, 0 deletions
diff --git a/src/linux/ogOperations.py b/src/linux/ogOperations.py
index e11fb0d..d6795b1 100644
--- a/src/linux/ogOperations.py
+++ b/src/linux/ogOperations.py
@@ -1,3 +1,6 @@
def poweroff():
print 'APAGADO'
+def reboot():
+ print 'REBOOT'
+
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