summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/live/ogOperations.py10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/live/ogOperations.py b/src/live/ogOperations.py
index d538790..202a35b 100644
--- a/src/live/ogOperations.py
+++ b/src/live/ogOperations.py
@@ -225,17 +225,11 @@ class OgLiveOperations:
def poweroff(self):
logging.info('Powering off client')
- if os.path.exists('/scripts/oginit'):
- self._poweroff_oglive()
- else:
- subprocess.call(['/sbin/poweroff'])
+ self._poweroff_oglive()
def reboot(self):
logging.info('Rebooting client')
- if os.path.exists('/scripts/oginit'):
- self._poweroff_oglive(operation='reboot')
- else:
- subprocess.call(['/sbin/reboot'])
+ self._poweroff_oglive(operation='reboot')
def shellrun(self, request, ogRest):
cmd = request.getrun()